- /api/v1/token/:token (GET) => Send user data back
{
user: {
name: " ",
twitter_handle: " ",
bio : " ",
introductions: [ ],
resources : [ ],
feedback : [ ],
}
- /api/v1/introductions (GET) => Sends introduction
Also have some query params
/api/v1/introductions?q=query
- /api/v1/feedback (GET) => Sends introduction
Also have some query params
/api/v1/feedback?q=query
- /api/v1/resources (GET) => Sends introduction
Also have some query params
/api/v1/resources?q=query
- api/v1/user/:id (PUT) Update user when submit form
// Request Body
user : {
name: ' ',
bio: ' ',
introductions: [{
{
id: ' ',
name: ' '
}
{ // id should be null for newly created tag
id: null,
name: ' '
}
} ]
}
- api/v1/user/:@username (GET) For getting user data
Response
{
user: {
name: " ",
twitter_handle: " ",
bio : " ",
introductions: [ ],
resources : [ ],
feedback : [ ],
}
Reroute app on /users/@username in front-end
Also have some query params
/api/v1/introductions?q=query
Also have some query params
/api/v1/feedback?q=query
Also have some query params
/api/v1/resources?q=query
Response
Reroute app on /users/@username in front-end