https://github.com/dlerm/yotpo-seeder
👾 A simple node express middleware API between the front-end and the Yotpo Rest API
https://github.com/dlerm/yotpo-seeder
Last synced: over 1 year ago
JSON representation
👾 A simple node express middleware API between the front-end and the Yotpo Rest API
- Host: GitHub
- URL: https://github.com/dlerm/yotpo-seeder
- Owner: dlerm
- License: bsd-3-clause
- Created: 2016-04-15T01:39:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T20:09:57.000Z (over 3 years ago)
- Last Synced: 2025-03-28T15:51:58.574Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 143 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yotpo Seeder (Version 2.0.0)
👾 A simple node express middleware API between the front-end and the Yotpo Rest API.
Looking for version 1? [Click here](https://github.com/dlerm/yotpo-seeder/tree/release/1.x.x)
## Reviews
For a specific product:
GET /reviews/:id
POST /reviews/:id
All products:
GET /reviews/all
Sample response:
{
status: {
code: 200,
message: 'OK'
},
reviews: [{...}],
pagination: {
page: 1,
per_page: 100,
total: 300
},
bottomline: {
total_review: 300,
average_score: 4.6
},
grouping_data: {...},
products: [{...}],
product_tags: ...
}
## Questions/Answers
For a specific product:
GET /questions/:id
POST /questions/:id
All products [coming soon]:
GET /questions/all
Sample response:
{
status: {
code: 200,
message: 'OK'
},
questions: [{...}],
pagination: {
page: 1,
per_page: 100,
total: 30
},
bottomline: {
total_questions: 30,
total_answers: 30
}
}