-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
Content-Type: "application/json"
Authorization: "Token {Token}"
Create user and return
Request
{
"email": String,
"password": String,
"first_name"(optional): String,
"last_name"(optional): String
}
Response
200
{
"email": String,
"password": String,
"first_name"(optional): String,
"last_name"(optional): String
}
400 Bad Request
{ field: [error] }
authenticate user with email and password, return token
Request
{
"email": String,
"password": String
}
Response
200
{
"token": Token
}
400 Bad Request
{}
delete user token from database
Response
200
{ "field": [error] }
get current user if authenticated
Response
200
{
"email": String,
"password": String,
"first_name" (optional): String,
"last_name" (optional): String
}
400 Bad Request
{ field: [error] }
retrieve all users
Response
200
[
{
"email": String,
"password": String,
"first_name" (optional): String,
"last_name" (optional): String
}
]
retrieve, modify or delete single user by id
Request
{
"email": String,
"first_name"(optional): String,
"last_name"(optional): String
}
Response
200
{
"email": String,
"username": String,
"first_name": String,
"last_name": String
}
400 Bad Request
{ field: [error] }
Get all ingredients, or create a new one
Request
{
"weight": Float("g"),
"energy": Float("kcal"),
"protein": Float("g"),
"carb" (optional): Float("g"),
"fat" (optional): Float("g"),
"saturatedFat" (optional): Float("g"),
"sugar" (optional): Float("g"),
"fibre" (optional): Float("g"),
"cholesterol" (optional): Float("mg"),
"calcium" (optional): Float("mg"),
"iron" (optional): Float("mg"),
"sodium" (optional): Float("mg"),
"potassium" (optional): Float("mg"),
"magnesium" (optional): Float("mg"),
"phosphorus" (optional): Float("mg"),
"thiamin" (optional): Float("mg"),
"riboflavin" (optional): Float("mg"),
"niacin" (optional): Float("NE"),
"folate" (optional): Float("DFE")
}
Response
200
Ingredient
400 Bad Request
{ field: [error] }
Retrive, modify or delete single ingredient by id
Request
Ingredient
Response
200
Inredient
400 Bad Request
{ field: [error] }
404 Not Found
Retrive or delete single ingredient by slug
Response
200
Ingredient
400 Bad Request
{ field: [error] }
404 Not Found
Add default ingredients in mocks to database
Response
200
Get all foods, or create a new one
Request
{
"name": String,
"slug": String
}
Response
200
Food
400 Bad Request
{ field: [error] }
Retrive, modify or delete single food by id
Request
Food
Response
200
Food
400 Bad Request
{ field: [error] }
Retrive or delete single food by slug
Request
Food
Response
200
Food
204 No Content
400 Bad Request
{ field: [error] }
Search food
Response
200
[Food]
400 Bad Request
{ field: [error] }
Add default foods in mocks to database
**Request**
**Response**
400 Bad Request
{ field: [error] }
Create, retrive, modify or delete the existence of ingredient in food
Request
{
weight: Float
}
Response
200
{weight: Float}
204 No Content
400 Bad Request
{ field: [error] }
404 Not Found
- Project Description
- Project Video
- Themes/Features
- User Stories & Acceptance Criteria
- Personas
- Domain Analysis
- Requirements
- Initial Plan
- Diagrams
- Use Cases
- Peer Reviews
- Mockups
- Test Plan
- User Tests
- Test Web Project
- Meeting 1 - 16.02.2016
- Meeting 2 - 18.02.2016
- Meeting 3 - 3.3.2016
- Meeting 4 - 7.3.2016
- Meeting 5 - 11.3.2016
- Customer Meeting 1 - 28.03.2016
- Meeting 6 - 8.4.2016
- Customer Meeting 1 - 29.9.2016
- Customer Meeting 2 - 06.10.2016
- Meeting 7 - 06.10.2016
- Meeting 8 - 13.10.2016
- Customer Meeting 3 - 27.10.2016
- Meeting 9 - 27.10.2016
- Customer Meeting 4 - 03.11.2016
- Meeting 10 - 03.11.2016
- Meeting 11 - 10.11.2016
- Meeting 12 - 01.12.2016
- Meeting 13 - 08.12.2016
- Customer Meeting 5 - 08.12.2016
- Meeting 14 - 08.12.2016