Favorites

/api/favorites provides endpoints for gathering, adding, and removing tokens from a users favorites list.

Get Favorite Tokens

get

Find and list favorite tokens for current user.

Body
idstringRequired
Responses
200
OK
get
GET /api/favorites HTTP/1.1
Host: api.rair.market
Content-Type: application/json
Accept: */*
Content-Length: 13

{
  "id": "text"
}
200

OK

No content

Add Favorite Token

post

Add favorite token for the current user.

Body
tokenstringRequired
Responses
200
OK
post
POST /api/favorites HTTP/1.1
Host: api.rair.market
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "token": "text"
}
200

OK

No content

Remove Favorite Token

delete

Find and remove a favorite token.

Path parameters
idstringRequired
Responses
200
OK
delete
DELETE /api/favorites/{id} HTTP/1.1
Host: api.rair.market
Accept: */*

No content

Get Favorites by User

get

List favorite tokens for a specified user.

Path parameters
userAddressstringRequired
Responses
200
OK
get
GET /api/favorites/{userAddress} HTTP/1.1
Host: api.rair.market
Accept: */*
200

OK

No content

Was this helpful?