Skip to content

Commit

Permalink
feat(): some end points working
Browse files Browse the repository at this point in the history
  • Loading branch information
jhderojasUVa committed Aug 12, 2022
1 parent 5b606a6 commit b4ba27a
Show file tree
Hide file tree
Showing 6 changed files with 10,046 additions and 73 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
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",
}
49 changes: 48 additions & 1 deletion README.md
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 /

Loading

0 comments on commit b4ba27a

Please sign in to comment.