Skip to content

vscalcione/deno-crud-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deno-crud-api

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)

Testing API

Open Postman and test all HTTP calls of this APIs

api.ts

  • 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)

app.ts

  • 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)

Releases

No releases published

Packages

No packages published