Skip to content

Backend API Author & Admin

Nhan Nguyen edited this page Feb 21, 2021 · 15 revisions

Author and Admin

/service/author/{AUTHOR_ID}/ to retrieve currently logged-in user profile (required authorization)

  • Request method: GET, POST
  • example response:
{
    # ID of the Author
    "id":"41f7b891-e535-44ef-a795-b15f1dbab035",
    # the display name of the author
    "displayName":"Lara Croft",
    # HATEOS url for Github API
    "github": "http://github.com/laracroft"
}
  • response status code:
    • 401 Unauthorized //when token not provided.
    • 200: OK
    • 403: Method not Allowed
    • 404: No author matches the given query.

Clone this wiki locally