GetUserById

GET /users/{id}

Returns the user public data

Path parameters

  • id string Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • _id string
    • username string
    • firstName string
    • createDate string(date-time)
    • location string
    • image string(uri)
    • emailVerified boolean
  • 404

    Not Found

  • 500

    Internal Server Error

GET /users/{id}
curl \
 --request GET 'https://garden-to-yours.herokuapp.com/users/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "_id": "string",
  "image": "http://example.com",
  "location": "string",
  "username": "string",
  "firstName": "string",
  "createDate": "2019-08-24T14:15:22Z"
}