A simple REST api with an in-memory database created with Deno.
To run this programm, you will need Deno. Look at the installation for more info.
deno run --allow-net --allow-env --allow-read index.ts
deno test --allow-net
Route | Description |
---|---|
GET / |
Respond with Hello World! |
GET /dinos |
List all dinosaurs |
GET /dino/:id |
List dinosaur by id |
POST /dino |
Create a new dinosaur |
PATCH /dino/:id |
Update dinosaur by id |
DELETE /dino/:id |
Delete dinosaur by id |
Feedback and PRs are welcome! Just make sure to run deno fmt
before committing to format all files.
This project is licensed under the MIT License. See LICENSE for details.