Skip to content

Fetch all tags ​

get/api/tags
Returns all tags.

Request ​

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

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,
      "author_id": 1,
      "name": "Tag name"
    }
  ],
  "message": "Ok"
}
// SUCCESS

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