Skip to content

Author API

Fraser Redford edited this page Apr 15, 2021 · 21 revisions

GET author/<str:id>/

This will retrieve the author information for a given author.

Request Requirements

No body Required

Sample Response

{
    "type": "author",
    "id": "https://team6-project-socialdistrib.herokuapp.com/author/21d2d52bf3c34b84a45951d53b472a08",
    "host": "https://team6-project-socialdistrib.herokuapp.com/",
    "displayName": "Jeff",
    "url": "https://team6-project-socialdistrib.herokuapp.com/author/21d2d52bf3c34b84a45951d53b472a08",
    "github": "https://github.com/Jeff"
}

Response Codes

  • 200 OK upon a successful retrieval of a profile
  • 403 FORBIDDEN if an user is not authenticated
  • 400 BAD REQUEST if bad information is passed in the request

Clone this wiki locally