Classical CRUD API implemented in deno. For run and test this APIs, type this command in your shell:
./startup.sh
For semplicity, I create a simple script that execute the command for run in dev mode this APIs.
This script (startup.sh) show a simple menu with the user can choose if run 1st script (api.ts) or 2nd script (app.ts)
Open Postman and test all HTTP calls of this APIs
- GET - http://locahost:5000/users (List of all users)
- GET - http://locahost:5000/users/:id (Details of a single user identified by ID)
- POST - http://localhost:5000/users (Add user)
- DELETE - http://localhost:5000/users (Remove user)
- GET - http://localhost:4000/users (List of all users)
- GET - http://localhost:4000/users/:id (Details of a single user identified by ID)
- POST - http://localhost:4000/users (Add user)
- PUT - http://localhost:4000/users/:id (Update user identified by ID)
- DELETE - http://localhost:4000/users/:id (Remove user identified by ID)