Skip to content

API Endpoints #28

Description

@praveen-me
  • /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
{
  introductions: [ ],
}
  • /api/v1/feedback (GET) => Sends introduction
    Also have some query params
    /api/v1/feedback?q=query
{
  feedback: [ ],
}
  • /api/v1/resources (GET) => Sends introduction
    Also have some query params
    /api/v1/resources?q=query
{
  resources: [ ],
}
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions