├── .gitattributes ├── .gitignore ├── Chapter 2 ├── hello-node-http-server.txt ├── hello-node.txt ├── main.txt ├── modules │ ├── http-module.txt │ └── math.txt ├── test-http-module.txt └── test-math.txt ├── Chapter 3 └── sources │ ├── app.js │ ├── contacts.js │ ├── data │ └── contacts.json │ ├── hello-routes-with-get-params.js │ ├── hello-routes-with-params.js │ ├── hello-routes.js │ ├── modules │ ├── B5406_03_01.png │ ├── B5406_03_02.png │ ├── B5406_03_03.png │ ├── B5406_03_04.png │ ├── B5406_03_05.png │ └── contacts.js │ └── package.json ├── Chapter 4 └── sources │ ├── app.txt │ ├── levelup-1.txt │ ├── levelup.txt │ ├── modules │ └── contactdataservice.txt │ ├── mongodb-1.txt │ ├── mongodb-express.txt │ ├── package.txt │ └── test │ ├── contact-model-test.txt │ └── prepare.txt ├── Chapter 5 ├── contacts.wadl.txt ├── full-fledged-service.txt └── modules │ ├── contactdataservice_v1.txt │ └── contactdataservice_v2.txt ├── Chapter 6 ├── OLD │ └── source │ │ ├── http-auth-full-fledged-service.txt │ │ ├── http-basic-auth-full-fledged-service.txt │ │ ├── http-passport-basic-auth-full-fledged-service.txt │ │ ├── https-full-fledged-service.txt │ │ └── modules │ │ ├── admin.txt │ │ ├── contactdataservice_v1.txt │ │ └── contactdataservice_v2.txt └── source │ ├── http-auth-full-fledged-service.txt │ ├── http-basic-auth-full-fledged-service.txt │ ├── http-passport-basic-auth-full-fledged-service.txt │ ├── https-full-fledged-service.txt │ └── modules │ ├── admin.txt │ ├── contactdataservice_v1.txt │ └── contactdataservice_v2.txt ├── LICENSE └── README.md /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/.gitignore -------------------------------------------------------------------------------- /Chapter 2/hello-node-http-server.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 2/hello-node-http-server.txt -------------------------------------------------------------------------------- /Chapter 2/hello-node.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 2/hello-node.txt -------------------------------------------------------------------------------- /Chapter 2/main.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 2/main.txt -------------------------------------------------------------------------------- /Chapter 2/modules/http-module.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 2/modules/http-module.txt -------------------------------------------------------------------------------- /Chapter 2/modules/math.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 2/modules/math.txt -------------------------------------------------------------------------------- /Chapter 2/test-http-module.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 2/test-http-module.txt -------------------------------------------------------------------------------- /Chapter 2/test-math.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 2/test-math.txt -------------------------------------------------------------------------------- /Chapter 3/sources/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/app.js -------------------------------------------------------------------------------- /Chapter 3/sources/contacts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/contacts.js -------------------------------------------------------------------------------- /Chapter 3/sources/data/contacts.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/data/contacts.json -------------------------------------------------------------------------------- /Chapter 3/sources/hello-routes-with-get-params.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/hello-routes-with-get-params.js -------------------------------------------------------------------------------- /Chapter 3/sources/hello-routes-with-params.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/hello-routes-with-params.js -------------------------------------------------------------------------------- /Chapter 3/sources/hello-routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/hello-routes.js -------------------------------------------------------------------------------- /Chapter 3/sources/modules/B5406_03_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/modules/B5406_03_01.png -------------------------------------------------------------------------------- /Chapter 3/sources/modules/B5406_03_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/modules/B5406_03_02.png -------------------------------------------------------------------------------- /Chapter 3/sources/modules/B5406_03_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/modules/B5406_03_03.png -------------------------------------------------------------------------------- /Chapter 3/sources/modules/B5406_03_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/modules/B5406_03_04.png -------------------------------------------------------------------------------- /Chapter 3/sources/modules/B5406_03_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/modules/B5406_03_05.png -------------------------------------------------------------------------------- /Chapter 3/sources/modules/contacts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/modules/contacts.js -------------------------------------------------------------------------------- /Chapter 3/sources/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 3/sources/package.json -------------------------------------------------------------------------------- /Chapter 4/sources/app.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 4/sources/app.txt -------------------------------------------------------------------------------- /Chapter 4/sources/levelup-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 4/sources/levelup-1.txt -------------------------------------------------------------------------------- /Chapter 4/sources/levelup.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 4/sources/levelup.txt -------------------------------------------------------------------------------- /Chapter 4/sources/modules/contactdataservice.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 4/sources/modules/contactdataservice.txt -------------------------------------------------------------------------------- /Chapter 4/sources/mongodb-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 4/sources/mongodb-1.txt -------------------------------------------------------------------------------- /Chapter 4/sources/mongodb-express.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 4/sources/mongodb-express.txt -------------------------------------------------------------------------------- /Chapter 4/sources/package.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 4/sources/package.txt -------------------------------------------------------------------------------- /Chapter 4/sources/test/contact-model-test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 4/sources/test/contact-model-test.txt -------------------------------------------------------------------------------- /Chapter 4/sources/test/prepare.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 4/sources/test/prepare.txt -------------------------------------------------------------------------------- /Chapter 5/contacts.wadl.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 5/contacts.wadl.txt -------------------------------------------------------------------------------- /Chapter 5/full-fledged-service.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 5/full-fledged-service.txt -------------------------------------------------------------------------------- /Chapter 5/modules/contactdataservice_v1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 5/modules/contactdataservice_v1.txt -------------------------------------------------------------------------------- /Chapter 5/modules/contactdataservice_v2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 5/modules/contactdataservice_v2.txt -------------------------------------------------------------------------------- /Chapter 6/OLD/source/http-auth-full-fledged-service.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/OLD/source/http-auth-full-fledged-service.txt -------------------------------------------------------------------------------- /Chapter 6/OLD/source/http-basic-auth-full-fledged-service.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/OLD/source/http-basic-auth-full-fledged-service.txt -------------------------------------------------------------------------------- /Chapter 6/OLD/source/http-passport-basic-auth-full-fledged-service.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/OLD/source/http-passport-basic-auth-full-fledged-service.txt -------------------------------------------------------------------------------- /Chapter 6/OLD/source/https-full-fledged-service.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/OLD/source/https-full-fledged-service.txt -------------------------------------------------------------------------------- /Chapter 6/OLD/source/modules/admin.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/OLD/source/modules/admin.txt -------------------------------------------------------------------------------- /Chapter 6/OLD/source/modules/contactdataservice_v1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/OLD/source/modules/contactdataservice_v1.txt -------------------------------------------------------------------------------- /Chapter 6/OLD/source/modules/contactdataservice_v2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/OLD/source/modules/contactdataservice_v2.txt -------------------------------------------------------------------------------- /Chapter 6/source/http-auth-full-fledged-service.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/source/http-auth-full-fledged-service.txt -------------------------------------------------------------------------------- /Chapter 6/source/http-basic-auth-full-fledged-service.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/source/http-basic-auth-full-fledged-service.txt -------------------------------------------------------------------------------- /Chapter 6/source/http-passport-basic-auth-full-fledged-service.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/source/http-passport-basic-auth-full-fledged-service.txt -------------------------------------------------------------------------------- /Chapter 6/source/https-full-fledged-service.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/source/https-full-fledged-service.txt -------------------------------------------------------------------------------- /Chapter 6/source/modules/admin.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/source/modules/admin.txt -------------------------------------------------------------------------------- /Chapter 6/source/modules/contactdataservice_v1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/source/modules/contactdataservice_v1.txt -------------------------------------------------------------------------------- /Chapter 6/source/modules/contactdataservice_v2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/Chapter 6/source/modules/contactdataservice_v2.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/RESTful-Web-API-Design-with-Node.JS-Second-Edition/HEAD/README.md --------------------------------------------------------------------------------