-
Notifications
You must be signed in to change notification settings - Fork 1
API
POST /api/Account/Register
- FirstName
- LastName
- Password
Returns: JSON
- Invalid input
{
"success": false,
"errors": [
{ "message": "The Email field is required." },
{ "message": "The Password field is required." }
]
}
- Errors on registering
{
"success": false,
"errors": [
{
"message": "User name 'test@domain.com' is already taken.".
"data": "DuplicateUserName"
}
]
}
- Successful registration
{ "success": true, data: { user: {USER MODEL}, token: "JWT TOKEN"} }
POST /api/Account/Login
- Password
Returns: JSON
- Invalid input
{
"success": false,
"errors": [
{ "message": "The Email field is required." },
{ "message": "The Password field is required." }
]
}
- Failed login
{
"success": false,
"errors": [{
"message": "Not logged in",
"data": {
"succeeded": false,
"isLockedOut": false,
"isNotAllowed": false,
"requiresTwoFactor": false
}
}]
}
- Successful login
{ "success": true, data: { user: {USER MODEL}, token: "JWT TOKEN"} }
POST /api/Account/Edit
- FirstName
- LastName
Returns: JSON (format like login & register)
POST /api/Account/Password
- OldPassword
- NewPassword
- ConfirmPassword
Returns: JSON (format like login & register)
POST /api/Account/ForgotPassword
Returns: JSON (format like login & register)
POST /api/Account/ResetPassword
- Password
- ConfirmPassword
- Code (send via mail)
Returns: JSON (format like login & register)
GET /api/Account/Logout
You need the following header: Bearer: JWT Token
, you get a JWT token by logging in or registering.
The server will refuse connection without or with a invalid JWT token.
GET /api/Users/
Returns: JSON User with owning lists (items not populated)
GET /api/Users/{id}
Returns: JSON User with public owning lists (items not populated)
POST /api/Users/{id}
GET /api/Users/Lists
Returns: JSON [List] of logged in user (items not populated)
GET /api/Users/Subscriptions
Returns: JSON [List] of logged in user (items not populated)
POST /api/Lists/
- List model
GET /api/Lists/{id}
Returns: JSON List with all items
PATCH /api/Lists/{id}
- Partial list model like this:
[
{
"Op": "replace",
"Path": "Name",
"Value": "test"
}
]
PUT /api/Lists/{id}
- List model
POST /api/Lists/{id}
DELETE /api/Lists/{id}
PUT /api/Items/{id}
For editing and (un)checking items.
PATCH /api/Items/{id}
- JWT Token of item owner in Headers
- Partial item model like this:
[
{
"Op": "replace",
"Path": "Name",
"Value": "test"
}
]
POST /api/Items/{id}
- Item model
DELETE /api/Items/{id}
GET /api/Notifications/
Returns: JSON list of all Notifications
PUT /api/Notifications/
Returns: JSON list of all Notifications
PUT /api/Notifications/{id}