https://github.com/saswatamcode/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.
https://github.com/saswatamcode/deno_dogs_api
abc deno mongodb typescript
Last synced: 11 months ago
JSON representation
A simple API built with Deno which lets you perform CRUD operations on a database of dogs. Uses Abc, MongoDB and Denv.
- Host: GitHub
- URL: https://github.com/saswatamcode/deno_dogs_api
- Owner: saswatamcode
- License: mit
- Created: 2020-05-17T10:26:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-17T10:27:59.000Z (almost 6 years ago)
- Last Synced: 2025-03-25T11:52:26.871Z (12 months ago)
- Topics: abc, deno, mongodb, typescript
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://opensource.org/licenses/MIT)
[](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
[](https://GitHub.com/Naereen/ama)
[](https://code.visualstudio.com/)
[](https://GitHub.com/saswatamcode/deno_dogs_api/network/)
[](https://GitHub.com/saswatamcode/deno_dogs_api/stargazers/)
[](https://GitHub.com/saswatamcode/deno_dogs_api/issues/)
[](https://github.com/ellerbrock/open-source-badges/)
[](https://github.com/ellerbrock/typescript-badges/)
# Deno Dogs API
A simple API built with [Deno](https://deno.land/) which lets you perform CRUD operations on a database of dogs.
Uses [Abc](https://deno.land/x/abc), [MongoDB](https://deno.land/x/mongo) and [Denv](https://deno.land/x/denv).
## To Run
- Install [Deno](https://deno.land/manual/getting_started/installation)
- 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