Application created in order to learn about creating an api rest with Deno.
Technologies that I used to develop this api
-
Clone the repository.
-
Open
mongodb.ts
file and changeconst MONGO_URL = 'mongodb://localhost:27017'
to connect to your mongodb database. -
Start the server by running
deno run --allow-net --allow-write --allow-read --allow-plugin --unstable --allow-env server.ts
You can access the following endpoints on http://localhost:8000
METHOD | URL | Description |
---|---|---|
GET | /notes | Return all notes |
GET | /notes/:id | Return single note |
POST | /notes | Create a note |
PUT | /notes/:id | Update note |
DELETE | /notes/:id | Delete note |