[Feature] Add fruit #6

Closed
opened 2020-12-02 12:00:49 +00:00 by wazolab · 0 comments
wazolab commented 2020-12-02 12:00:49 +00:00 (Migrated from github.com)

The user should be allowed to add fruits.

API Endpoint : POST /fruit
Data :
{ "isFruit": true, "name": "pineapple", "image": "/some/image/path.jpg", "price": "471.00", "color": "#176172", "description": "The pineapple is a tropical plant.", "taste": "Intelligent", "expires": "2020-10-24T04:57:13.722Z", "id": 1 }

Tip : This should appear in "data.more" array when making requests to "GET /fruit".

The user should be allowed to add fruits. **API Endpoint :** `POST /fruit` **Data :** `{ "isFruit": true, "name": "pineapple", "image": "/some/image/path.jpg", "price": "471.00", "color": "#176172", "description": "The pineapple is a tropical plant.", "taste": "Intelligent", "expires": "2020-10-24T04:57:13.722Z", "id": 1 }` **Tip :** This should appear in "data.more" array when making requests to "GET /fruit".
Sign in to join this conversation.