Action | Method | Resource | Description |
---|---|---|---|
Get all | GET | /business/:business_id/reviews | Get all reviews with business_id . |
Get | GET | /business/:business_id/reviews/:review_id | Get review with id business_id and review_id . |
Create | POST | /business/:business_id/reviews | Create a review |
Update | PUT | /business/:business_id/reviews/:review_id | Update review with business_id and review_id . |
Delete | DELETE | /business/:business_id/reviews/:review_id | Delete review with business_id and review_id . |
The extra model is composed of the following attributes:
Attribute | Type | Required | Description | Whereable |
---|---|---|---|---|
order_id | integer | no, required to create. | The review's order. (Order ID) | Yes |
quality | integer | no, required to create. | The review's quality. | Yes |
delivery | integer | no, required to create. | The review's delivery. | Yes |
service | integer | no, required to create. | The review's service. | Yes |
package | integer | no, required to create. | The review's package. | Yes |
user_id | integer | no, required to create. | The review's user. (User ID). | Yes |
comment | string | no, required to create. | The review's comment. | Yes |
enabled | boolean | no | The review's status. | Yes |
Restrictions for Reviews
Reviews are the way businesses get feedback, this can be made by users, if this user has an order completed for this business (
status:
1 or 11).
Get review response.
- User level 0 (Type: administrator) response contains all reviews from all businesses that exist in the project.
- User level 2 (Type: Business owner) response contains all reviews from all business related to this user.