If you have any issue with REST API, please provide:
- HTTP method (
GET
,POST
, ..) - Protocol+hostname+port (important! was it dev, staging, or production? Example:
https://apiserver:4321
- URI (examples:
/people?id=eq.1
,/rpc/some_function?user_id=eq.1
) - All request headers
- Payload (in case of
POST
, orPUT
, orPATCH
, usually in JSON format)
- HTTP Status code (for example,
200 OK
or400 Bad Request
) - All response headers
- Response body (usually in JSON format)
please add as many details as possible: what you expected, what you see, what is wrong.
N.B. If you use Postman, it is easy to provide all request details – there is a special link 'Code' which allows you to quickly generate code for your request. Usually, the most convenient formats are: "HTTP" and "cURL". As for response, it is a bit more tricky: you need to collect all three items manually.