Modul 294 LB B Backend

Version: 2.2.0

/tasks

GET

Summary

List all tasks

Description

List all tasks

Responses
Code Description
200 Successful operation

PUT

Summary

Update an existing task

Description

Update an existing task with Id

Responses
Code Description
200 Successful operation
400 Invalid ID supplied
404 Task not found

POST

Summary

Add a new task

Description

Add a new task

Responses
Code Description
200 Successful operation
400 Invalid input

/task/{taskId}

GET

Summary

Find task by ID

Description

Returns a single task

Parameters
Name Located in Description Required Schema
taskId path ID of task to return Yes long
Responses
Code Description
200 successful operation
400 Invalid ID supplied
403 Unauthorized
404 Task not found

DELETE

Summary

Deletes a task

Description

delete a task

Parameters
Name Located in Description Required Schema
taskId path Task id to delete Yes long
Responses
Code Description
400 Invalid task value
403 Unauthorized

/auth/cookie/tasks

GET

Summary

List all tasks

Description

List all tasks

Responses
Code Description
200 Successful operation
401 Unauthorized
Security
Security Schema Scopes
jwtAuth

PUT

Summary

Update an existing task

Description

Update an existing task by Id

Responses
Code Description
200 Successful operation
400 Invalid ID supplied
401 Unauthorized
404 Task not found
Security
Security Schema Scopes
jwtAuth

POST

Summary

Add a new task

Description

Add a new task

Responses
Code Description
200 Successful operation
400 Invalid input
401 Unauthorized
Security
Security Schema Scopes
jwtAuth

/auth/cookie/task/{taskId}

GET

Summary

Find task by ID

Description

Returns a single task

Parameters
Name Located in Description Required Schema
taskId path ID of task to return Yes long
Responses
Code Description
200 successful operation
400 Invalid ID supplied
401 Unauthorized
404 Task not found
Security
Security Schema Scopes
jwtAuth

DELETE

Summary

Deletes a task

Description

delete a task

Parameters
Name Located in Description Required Schema
taskId path Task id to delete Yes long
Responses
Code Description
400 Invalid task value
401 Unauthorized
Security
Security Schema Scopes
jwtAuth

/auth/cookie/login

POST

Summary

Logs user into the system

Responses
Code Description
200 successful operation
400 Invalid email/password supplied
Security
Security Schema Scopes
jwtAuth

/auth/cookie/status

GET

Summary

Returns the email when logged in

Responses
Code Description
200 successful operation
401 Unauthorized
Security
Security Schema Scopes
jwtAuth

/auth/cookie/logout

POST

Summary

Logs out current logged in user session

Description
Parameters
Name Located in Description Required Schema
Responses
Code Description
default successful operation

/auth/jwt/tasks

GET

Summary

List all tasks

Description

List all tasks

Responses
Code Description
200 Successful operation
401 Unauthorized
Security
Security Schema Scopes
jwtAuth

PUT

Summary

Update an existing task

Description

Update an existing task by Id

Responses
Code Description
200 Successful operation
400 Invalid ID supplied
401 Unauthorized
404 Task not found
Security
Security Schema Scopes
jwtAuth

POST

Summary

Add a new task

Description

Add a new task

Responses
Code Description
200 Successful operation
400 Invalid input
401 Unauthorized
Security
Security Schema Scopes
jwtAuth

/auth/jwt/task/{taskId}

GET

Summary

Find task by ID

Description

Returns a single task

Parameters
Name Located in Description Required Schema
taskId path ID of task to return Yes long
Responses
Code Description
200 successful operation
400 Invalid ID supplied
401 Unauthorized
404 Task not found
Security
Security Schema Scopes
jwtAuth

DELETE

Summary

Deletes a task

Description

delete a task

Parameters
Name Located in Description Required Schema
taskId path Task id to delete Yes long
Responses
Code Description
400 Invalid task value
401 Unauthorized
Security
Security Schema Scopes
jwtAuth

/auth/jwt/sign

POST

Summary

Generates jwt token

Responses
Code Description
200 successful operation
400 Invalid email/password supplied

/auth/jwt/verify

GET

Summary

Returns the email when token is valid

Responses
Code Description
200 successful operation
401 Unauthorized

Models

Task

Name Type Description Required
id integer Example: 10 No
completed boolean Example: false No
title string Example: "Feed pets" No