tnguyen14 / lists

Home Page:https://lists.cloud.tridnguyen.com

Repository from Github https://github.comtnguyen14/listsRepository from Github https://github.comtnguyen14/lists

lists

APIs

See test/lists.js for endpoint documentation.

List management

# create a new list
:; curl -X POST https://lists.cloud.tridnguyen.com/ \
  -H "Authorization: Bearer $AUTH_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"type": "<listType>", "name": "<listName>"}'

# delete a list
:; curl -X DELETE "https://lists.cloud.tridnguyen.com/${listType}/${listName}" \
  -H "Authorization: Bearer $AUTH_TOKEN"

Add item to list

:; curl -X POST "https://lists.cloud.tridnguyen.com/${listType}/${listName}/items" \
  -H "Authorization: Bearer $AUTH_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"id": "my-item-id", "foo": "bar"}'

Migrate from prod to dev

:; export API_SERVER=https://lists.cloud.tridnguyen.com
:; node migrate/api-to-firestore.js

About

https://lists.cloud.tridnguyen.com


Languages

Language:JavaScript 94.3%Language:Svelte 4.2%Language:HTML 0.7%Language:Shell 0.5%Language:Dockerfile 0.4%