See test/lists.js
for endpoint documentation.
# 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"
:; 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"}'
:; export API_SERVER=https://lists.cloud.tridnguyen.com
:; node migrate/api-to-firestore.js