This is going to be a website logging my research on DNA computing and other types of computing like Quantum
- PostgreSQL
- NodeJS > v6
- Returns status (200) and JSON of API saying welcome
- Returns status (200) and JSON of all users and thier role(s)
- Returns status (412) and a JSON message if not successful.
- Creates a new user and generates a hashed & salted password
- Assigns a default role
- Returns status (200) & JSON of the new user
- Returns status (412) and a JSON message if not successful.
Name | Type | Default | Required |
---|---|---|---|
firstname | string | null | yes |
lastname | string | null | yes |
string | null | yes | |
password | string | null | yes |
Same for all routes
Name | Type | Default | Required |
---|---|---|---|
id | int | null | yes |
- Returns status (200) and JSON of all a user and thier role(s)
- Returns status (412) and a JSON message if not successful.
- Removes User From Database
- Returns a status code of (204) if successful or (412) if not successfull.
Needs Implementation
- Returns status (200) and JSON of all roles
- Returns status (412) and a JSON message if not successful.
- Creates a new role
- Returns status (200) and JSON of the new role
- Returns status (412) and a JSON message if not successful.
Name | Type | Default | Required |
---|---|---|---|
role | string | null | yes |
Same for all routes
Name | Type | Default | Required |
---|---|---|---|
id | int | null | yes |
- Returns JSON of the found role if successful
- Returns status (412) if not successful.
Needs Implementation
- Removes Role From Database
- Returns a status code of (204) if successful or (412) if not successful.