Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
804 changes: 106 additions & 698 deletions .idea/workspace.xml

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "dev",
"problemMatcher": [],
"label": "npm: dev",
"detail": "nodemon server/app",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,35 @@ The response should be formatted as follows:
}
]`



#### Endpoints required

1. GET /mealtimes - return back all mealtimes
2. GET /dates - return back all dates
3. GET /stopwords - return back all stop words
4. Additionally, for endpoints 1-3, add an optional `query` query parameter that filters
the results and returns back the items `value` and it's given `type`. It's up to you to determine how to perform this filtering.

eg: `/mealtimes?query=breakfast`

response: `{
status: "success",
data: [
{
value: "morning",
type: "mealtime"
}
]
}`



5. POST /query - perform a query analysis

#### Requirements:
All responses should be in the following format:

`{
status: "success" | "failure",
data: {} // API data
}`
Loading