BuildForSDG / BuildForSDG/Team-250-Backends
[FEATURE] Could Zerohunger have an endpoint retrieving product details
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
A endpoint that allows farmers to add products to the database. The uri will be `/api/v1/products/id` where Id is the product id that returns the following response
Success
```
status: 200,
message: "success",
data: product (object)
```
Failure
```
status: 400 || 401,
message: "failure",
error: errorMsg
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the API routing entry point for `/api/v1/products/id` and the product data representation. Clarify whether the endpoint retrieves an existing product or adds one, then verify that successful and failed requests produce the specified status, message, data, and error fields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100