Get a profile

GET /profiles/{username}

Get a profile of a user of the system. Auth is optional

Path parameters

  • username string Required

    Username of the profile to get

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
  • Unauthorized

  • 422 application/json

    Unexpected error

    Hide response attribute Show response attribute object
    • errors object Required
      Hide errors attribute Show errors attribute object
GET /profiles/{username}
curl \
 --request GET '/api/profiles/{username}'
Response examples (200)
{
  "profile": {
    "bio": "I work at State Farm.",
    "image": "https://api.realworld.io/images/smiley-cyrus.jpg",
    "username": "jake",
    "following": false
  }
}
Response examples (422)
{
  "errors": {
    "body": [
      "string"
    ]
  }
}