Skip to content

mustafah15/cache-api

Repository files navigation

cache api

This project is provides APIs for CRUD operations to cache resources and it handles all the logic according to the spec file.

installation

  • run the docker image it will build the project container and all it's dependencies

  • for starting the server

npm run start
cp .env-example .env
npm run docker
  • for running the tests
npm run test
  • for checking the lint
npm run lint
  • for checking tests coverage
npm run coverage

usage

GET request to /cache

this for list all the cache objects

GET request to /cache/{key}

for getting specific cache object by it's key

POST request to /cache/{key}

PUT request to /cache/{key}

for creating a new cache object if this key does not exists before if it exists it will update the data with the provided data in the body.

DELETE request to /cache/{key}

this will delete an object by it's key

DELETE request to /cache

this for deleting all the database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages