The BalanceBowl project contract assigned to NESA by Makers
#APIS Bwols
Where full URLs are provided in responses they will be rendered as if service is running on 'http://testserver/'.
Closed endpoints requre authorization header
- load :
GET /api/bowls/load
- founders:
GET /api/bowls/founder
- explorers:
GET /api/bowls/explorers
- todays:
GET /api/bowls/todays/
- popular:
GET/api/bowls/popular
Get the details of a bowl by bowlID
URL : /api/bowls/load
Method : GET
Auth required : YES
Data constraints
{
bowlID:[bowlID]
}
Data example
{
bowlID:string
}
Code : 200 OK
Content example
{
bowlID:string,
name:string,
rating:float,
likes:int,
details:string,
calories:int,
imgresource:string,
prices:[
int,
int,
int
]
}
Code : 400 BAD REQUEST
Content :
{
"status": false,
"error": "error message"
}
Get the list of bowls that are in the explorers table in the db(Note recomnedations create a explorers column to store ids of bowls )
URL : /api/bowls/explorers
Method : GET
Auth required : YES
Data constraints
None
Data example
None
Code : 200 OK
Content example
[
{
bowlID:string,
name:string,
rating:float,
likes:int,
details:string,
calories:int,
imgminiresource:string
price:int
},
{
bowlID:string,
name:string,
rating:float,
likes:int,
details:string,
calories:int,
imgminiresource:string,
price:int
},{
bowlID:string,
name:string,
rating:float,
likes:int,
details:string,
calories:int,
imgminiresource:string,
price:int
}
]
Code : 400 BAD REQUEST
Content :
{
"status": false,
"error": "error message"
}
Get the list of bowls that are in the todays table in the db(Note recomnedations create a todays column to store ids of bowls )
URL : /api/bowls/todays/
Method : GET
Auth required : YES
Data constraints
None
Data example
None
Code : 200 OK
Content example
[
{
bowlID:string,
name:string,
rating:float,
likes:int,
details:string,
calories:int,
imgminiresource:string
price:int
},
{
bowlID:string,
name:string,
rating:float,
likes:int,
details:string,
calories:int,
imgminiresource:string,
price:int
},{
bowlID:string,
name:string,
rating:float,
likes:int,
details:string,
calories:int,
imgminiresource:string,
price:int
}
]
Code : 400 BAD REQUEST
Content :
{
"status": false,
"error": "error message"
}
Get the list of bowls that are in the popular popular in the db(Note recomnedations create a founders column to store ids of bowls )
URL : GET/api/bowls/popular
Method : GET
Auth required : YES
Data constraints
None
Data example
None
Code : 200 OK
Content example
[
{
bowlID:string,
name:string,
rating:float,
likes:int,
details:string,
calories:int,
imgminiresource:string
price:int
},
{
bowlID:string,
name:string,
rating:float,
likes:int,
details:string,
calories:int,
imgminiresource:string,
price:int
},{
bowlID:string,
name:string,
rating:float,
likes:int,
details:string,
calories:int,
imgminiresource:string,
price:int
}
]
Code : 400 BAD REQUEST
Content :
{
"status": false,
"error": "error message"
}