Skip to content

Profiles

Mateusz Donhefner edited this page Jan 18, 2021 · 3 revisions

Profiles

Endpoint for handling profiles.

Table of Contents

Profiles

Get profile

Permission : Only logged users are allowed.

Command Method Route Description
Details GET /{culture}/api/Profiles/{username} Fetches a single user profile by username.

Call to this API method will retrive a single user profile by username. Response data will be in the following format:

{
  "username": <string>,
  "image": <string>,
  "bio": <string>,
  "photos": [
    {
      "id": <string>,
      "url": <string>,
      "isMain": <bool>
    }
  ]
}

Example response for en-US/api/Profiles/bob:

{
  "username": "bob",
  "image": "https://res.cloudinary.com/socialknow/image/upload/v2508200349/c2y3qalp4uumwfxdzxmo.jpg",
  "bio": null,
  "photos": [
    {
      "id": "c2y3qalp4ugmwfxdzxmo",
      "url": "https://res.cloudinary.com/socialknow/image/upload/v2508200349/c2y3qalp4uumwfxdzxmo.jpg",
      "isMain": true
    }
  ]
}

Clone this wiki locally