Fetch all tags
get
/api/tagsReturns all tags.
Request
Security:
Bearer AuthProvide your bearer token in the Authorization header when making requests to protected resources.Example:
Authorization: Bearer <token>Response
Schema:
application/jsoncodestring
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"
}