-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b606a6
commit b4ba27a
Showing
6 changed files
with
10,046 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"eslint.validate": ["javascript"], | ||
"files.eol": "\n", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,50 @@ | ||
# analyted-backend-todo | ||
|
||
Example of a Docker Node application that is an express server connecting to a database and exposing some endpoints for a Todo application | ||
Example of a Docker Node application that is an express server connecting to a database and exposing some endpoints for a Todo application. | ||
|
||
All responses are JSON based. | ||
|
||
# Endpoints | ||
|
||
## Any error | ||
|
||
```json | ||
{ | ||
"success": false, | ||
"data": "The error message will be here" | ||
} | ||
``` | ||
|
||
## GET / | ||
|
||
```json | ||
{ | ||
"success": true, | ||
"data": { | ||
"rows": [ | ||
{ | ||
"id": "UNIQUE-ID", | ||
"description": "Description of the TODO", | ||
"completed": 0 || 1, | ||
"date": "UTC LONG FORMAT DATE" | ||
} | ||
], | ||
"rowCount": 0 | ||
} | ||
} | ||
``` | ||
|
||
## GET /{id} | ||
|
||
```json | ||
{ | ||
"success": true, | ||
"data": { | ||
"rows": [], | ||
"rowCount": 0 | ||
} | ||
} | ||
``` | ||
|
||
## PUT / | ||
|
Oops, something went wrong.