Skip to content
Leeyoujin edited this page Feb 21, 2021 · 5 revisions

Tags

user following/unfollowing tags user following tag list

following/unfollowing tags

[req] POST /tag/following

header : {
        authorization : token (String)
}
{
        tag_name: tag_name (String) // follwing/unfollowing하는 tag이름
        following: 'following' or 'unfollowing'(String)
}
[res] 
status code : 200
{
        msg: 'following tag_name' (String) // or unfollowing tag_name
}

status code : 400

user following list

[req] GET /tag/following/list/:user_id
header : {
        authorization: token (String)
}
[res]
status code : 200
{
        'msg': 'user following tags', 
        'tags' : ['trip', 'book'] or 'No following tags'
}

status code : 400
{
        'msg':`Invalid user id`
}
Clone this wiki locally