-
Notifications
You must be signed in to change notification settings - Fork 0
felipedemacedo/node-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
npm init -y npm i restify@6.3.4 --save -E npm i @types/restify@5.0.6 -D -E npm i typescript -g npm i nodemon -g tsc --init ***** tsc -w ***** nodemon dist/main.js -------------------------------------------------------------------- http://localhost:3000/info?param1=value1¶m2=value2 { browser: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36", method: "GET", url: "/info?param1=value1¶m2=value2", path: "/info", query: { param1: "value1", param2: "value2" } } -------------------------------------------------------------------- http://localhost:3000/users [ { name: "user 1", email: "firs@mail.com" }, { name: "user 2", email: "second@mail.com" } ] -------------------------------------------------------------------- http://localhost:3000/users/1 { id: "1", name: "user 1", email: "first@mail.com" }