Skip to content

A simple API built with Deno which lets you perform CRUD operations on a database of dogs. Uses Abc, MongoDB and Denv.

License

Notifications You must be signed in to change notification settings

saswatamcode/deno_dogs_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT Maintenance Ask Me Anything ! made-for-VSCode GitHub forks GitHub stars GitHub issues Open Source Love svg1 TypeScript

Deno Dogs API

A simple API built with Deno which lets you perform CRUD operations on a database of dogs. Uses Abc, MongoDB and Denv.

To Run

  • Install Deno
  • Clone into repo
  • Run deno run --allow-write --allow-read --allow-plugin --allow-net --allow-env --unstable server.ts
  • Visit localhost:8000

Routes

  • 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

About

A simple API built with Deno which lets you perform CRUD operations on a database of dogs. Uses Abc, MongoDB and Denv.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages