Base URL: https://object-wywr5ucsda-uc.a.run.app/object
https://object-wywr5ucsda-uc.a.run.app/object/[key]
https://object-wywr5ucsda-uc.a.run.app/object/[key]?timestamp=[unix-timestamp]
- https://object-wywr5ucsda-uc.a.run.app/object
- body must be a json object with only 1 single field
- example 1:
{ "apple": "red" }
- example 2:
{ "apple": { "color": "red", "size": "small"} }
- Post request only accepts an object with one key
- Get request with timestamp that is older then all entries will return 404
- Get request with no timestamp will return the latest entry if available
- Get request with timestamp will return the latest entry that is smaller than the timestamp
- Project is built into a Docker image with node:14 as base
- Docker image deployed into Google Cloud Run (platform managed) container
- Mongodb hosted in https://cloud.mongodb.com