Skip to content

Search tags by keyword

post/api/tags
Returns the top 5 tags for the given keyword.

Request

Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.Example: Authorization: Bearer <token>

Body application/json

keywordstring
The keyword string. You can search using the tag name.

Response

Schema: application/json
codestring
dataITagModel
messagestring
ITagModel
ts
export interface ITagModel {
  id: number
  author_id: number
  name: string

  author?: IUserModel
  bookmarks?: IBookmarkModel[]
}
export interface ITagModel {
  id: number
  author_id: number
  name: string

  author?: IUserModel
  bookmarks?: IBookmarkModel[]
}

Body application/json

json
// SUCCESS

{
  "code": "0",
  "data": [
    {
      "id": 1,
      "name": "Tag name"
    }
  ],
  "message": "Ok"
}
// SUCCESS

{
  "code": "0",
  "data": [
    {
      "id": 1,
      "name": "Tag name"
    }
  ],
  "message": "Ok"
}