REST API CRUD operation using Deno, Oak and MongoDB.
- Clone the repository
- Start the server by running
deno run --allow-net --allow-write --allow-read --allow-plugin --unstable server.ts
Note: Deno is secure by default. No file, network, or environment access, unless explicitly enabled. So when you run the server, its important to add --allow-net --allow-write --allow-read --allow-plugin --unstable.
You can access the following endpoints on http://localhost:3000/api/v1.0/
METHOD | URL | Description |
---|---|---|
GET | /products | Return all Products |
GET | /products/:id | Return single Products |
POST | /products | Create a Product |
PUT | /products/:id | Update Product |
DELETE | /products/:id | Delete Product |
Follow me on LinkedIn to get the latest update about features, code, and more. If you like this project give a star to this repo.
Thanks to all contributors and their support.
If you have an idea or you want to do something, tell me or just do it! I'm always happy to hear your feedback!
Code and documentation copyright 2020 the authors. Code released under the MIT License.