View on GitHub

TuneFull

Musical Social Network

TuneFull Endpoints

Global

Server context path

/tunefull

Authentication

All endpoints are secured by OAuth 2.0, except for one that allows non-logged-in users to use the Discovery feature. Aside from this, any requests not including an Authorization header with a valid Bearer token will result in a 401 Unauthorized status.

Content Types

Except where noted, all endpoints produce and/or consume application/json. A property-specific PUT endpoint produces and consumes text/plain.

Endpoints

GET /users/me

Returns the current User (profile)

(None)

(None)

(None)

User

200 OK

GET /users/{userId}

Returns the profile of a selected User

userId (user identifier)

(None)

(None)

User

GET /users

Returns all User profiles

(None)

(None)

User[]

200 OK

PUT /users/me/genre

Replaces the favorite genre of the current User.

(None)

(None)

Genre enum (Content-type: text/plain)

Genre enum (Content-type: text/plain)

DELETE /users/me

Deletes the current user’s records.

(None)

(None)

User

(None)

GET /clips

Returns lists of Clips, controlled by parameters.

(None)

(None)

Clip[]

200 OK

GET /clips/discovery

Returns a list of Clips for use in the Discovery mode.

(None)

(None)

Clip[]

200 OK

GET /clips/{clipId}

Gets a selected Clip.

clipId (clip identifier)

(None)

(None)

Clip

POST /clips

Creates a new clip

clipId (clip identifier)

(None)

Clip

Clip

DELETE /clips

Deletes a clip posted by the current user

(None)

(None)

Clip

(None)

GET /friendships

Gets the relationships in which the User is a friend

(None)

(None)

(None)

Relationship[]

200 OK

GET /follows

Gets the relationships in which the User is following another User

(None)

(None)

(None)

Relationship[]

200 OK

GET /pending

Gets the relationships in which the User has received a friend request and hasn’t responded yet

(None)

(None)

(None)

Relationship[]

200 OK

POST /friendships

Creates a relationship between two Users with a friend request.

(None)

(None)

User

Relationship

POST /follows

Allows a User to follow a different User.

(None)

(None)

User

Relationship

PUT /friendships/{relationshipId}

Updates a relationship between two Users (i.e. a friend request has been accepted).

relationshipId (relationship identifier)

(None)

boolean

Relationship

Return to previous page