A simple API built with Deno which lets you perform CRUD operations on a database of dogs. Uses Abc, MongoDB and Denv.
- Install Deno
- Clone into repo
- Run
deno run --allow-write --allow-read --allow-plugin --allow-net --allow-env --unstable server.ts
- Visit
localhost:8000
- GET
/dogs
: Fetches list of all dogs - POST
/dogs
: Let's you create a dog
{
"name": "Cheddar",
"breed": "Corgi",
"age": 11
}
- GET
/dogs/:id
: Fetch a single dog - PUT
/dogs/:id
: Update details of a dog - DELETE
/dogs/:id
: Delete a dog