Feedback
The feedback resource.
Basehttps://rest.carbon.ms/feedback
GET
/feedbackList feedbacks
Retrieve a paginated list of feedbacks. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
GEThttps://rest.carbon.ms/feedback
curl --request GET \
--url 'https://rest.carbon.ms/feedback?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"location": "string",
"feedback": "string",
"userId": "xyz789",
"attachmentPath": "string"
}
]GET
/feedbackRetrieve a feedback
Fetch a single feedback by filtering on `id`.
Query parameters
idstringMatch on the feedback's `id`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/feedback
curl --request GET \
--url 'https://rest.carbon.ms/feedback?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"location": "string",
"feedback": "string",
"userId": "xyz789",
"attachmentPath": "string"
}POST
/feedbackCreate a feedback
Create a new feedback.
Body parameters
locationstringrequireduserIdstringReferences user.id
feedbackstringrequiredattachmentPathstringPOSThttps://rest.carbon.ms/feedback
curl --request POST \
--url https://rest.carbon.ms/feedback \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"location":"string","feedback":"string"}'Response
{
"id": "abc123def456",
"location": "string",
"feedback": "string",
"userId": "xyz789",
"attachmentPath": "string"
}PATCH
/feedbackUpdate a feedback
Update an existing feedback, matched on `id`.
Body parameters
locationstringrequireduserIdstringReferences user.id
feedbackstringrequiredattachmentPathstringPATCHhttps://rest.carbon.ms/feedback
curl --request PATCH \
--url 'https://rest.carbon.ms/feedback?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"location":"string"}'Response
{
"id": "abc123def456",
"location": "string",
"feedback": "string",
"userId": "xyz789",
"attachmentPath": "string"
}DELETE
/feedbackDelete a feedback
Delete a feedback, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the feedback to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/feedback
curl --request DELETE \
--url 'https://rest.carbon.ms/feedback?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content