Products

/api/products provides endpoints for locating and updating product information. A product represents an individual collection of tokens within a contract.

Get Product

get

Get data for a single product.

Path parameters
idstringRequired
Responses
200
OK
get
GET /api/products/{id} HTTP/1.1
Host: api.rair.market
Accept: */*
200

OK

No content

Set Product Banner

post

Upload banner image through the IPFS service.

Path parameters
idstringRequired
Body
banneranyOptional
Responses
200
OK
post
POST /api/products/{id} HTTP/1.1
Host: api.rair.market
Content-Type: multipart/form-data
Accept: */*
Content-Length: 15

{
  "banner": null
}
200

OK

No content

Was this helpful?