A very simple HTTP API to build fast prototypes
4.6K
A very simple HTTP API to build fast prototypes
A very simple HTTP API to build fast prototypes
Important:
npm run sample:generate you will regenerate a new TODOs datasetEndpoints:
GET /__/health check healthGET /__/docs Swagger documentation for all the available endpointsGET /v1/todos List all TODOSPOST /v1/todos Create a TODOGET /v1/todo/{id} Get a specific TODOPUT /v1/todo/{id} Update a specific TODOPATCH /v1/todo/{id} PAtch a specific TODO propertyDELETE /v1/todo/{id} Delete a specific TODOPRO TIP Run simple-api and check the Swagger docs with payload details and great UI ๐ฟ
Use Docker Hub:
# Pull the image from Docker Hub:
docker pull ulisesgascon/simple-api:latest
# Run container:
docker run -p 3000:3000 ulisesgascon/simple-api:latest
To build and run the container locally:
# Clone Repo:
git clone https://github.com/ulisesgascon/simple-api.git
# Change to repo's cloned directory:
cd simple-api
# Build Image locally:
docker build --no-cache -t ulisesgascon/simple-api:latest .
# Run container:
docker run -p 3000:3000 ulisesgascon/simple-api:latest
Content type
Image
Digest
sha256:2d9477a7cโฆ
Size
68.8 MB
Last updated
almost 3 years ago
docker pull ulisesgascon/simple-api