Reviews¶
2 endpoint(s).
| Endpoint | Method | Summary | Auth |
|---|---|---|---|
/api/v1/reviews/submit |
POST |
Submit a review (pending moderation) | |
/api/v1/reviews/{context} |
GET |
Approved site_reviews + aggregate for a context |
POST /api/v1/reviews/submit¶
Submit a review (pending moderation)
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
context |
string |
no | |
rating |
integer |
yes | |
name |
string |
yes | |
body |
string |
no | |
email |
any |
no | |
website |
any |
no |
Response 200 — VedicApiResponse
Example
curl -X POST 'https://api.example.com/api/v1/reviews/submit' \
-H 'Authorization: Bearer <API_KEY>'
GET /api/v1/reviews/{context}¶
Approved site_reviews + aggregate for a context
| Param | In | Type | Required | Description |
|---|---|---|---|---|
context |
path | string | yes | |
limit |
query | integer | no |
Response 200 — VedicApiResponse
Example
curl -X GET 'https://api.example.com/api/v1/reviews/${context}' \
-H 'Authorization: Bearer <API_KEY>'