Simple service to host json metadata during testing.
git clone https://github.com/your/repository.git
yarn install
yarn start
http://localhost:3000/docs
- Endpoint:
PUT /data/{filename} - Description: Saves data to a file with the specified filename.
- Endpoint:
GET /data/{filename} - Description: Retrieves the content of the file with the specified filename.
- Endpoint:
DELETE /data/{filename} - Description: Deletes the file with the specified filename.
- Endpoint:
POST /lock/{key}?expiry={expiry_secs} - Description: Acquire a lock for the specified key for given time. By default the lock is set for 180 secs.
- Responses:
200 OK: Lock acquired successfully.423 Locked: Lock not available.
- Endpoint:
POST/unlock/{key} - Description: Release a lock for the specified key.