售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
RESTful Web API Design with Node.js - Second Edition
RESTful Web API Design with Node.js - Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. REST – What You Did Not Know
REST fundamentals
Principle 1 - everything is a resource
Principle 2 - each resource is identifiable by a unique identifier
Principle 3 - use the standard HTTP methods
Principle 4 - resources can have multiple representations
Principle 5 - communicate statelessly
The REST goals
Separation of the representation and the resource
Visibility
Reliability
Scalability and performance
Working with WADL
Taking advantage of the existing infrastructure
Summary
2. Getting Started with Node.js
Installing Node.js
Node Package Manager
Installing the Express framework and other modules
Setting up a development environment
Handling HTTP requests
Modularizing code
Testing Node.js
Working with mock objects
Deploying an application
Microsoft Azure
Nodejitsu
Self-test questions
Summary
3. Building a Typical Web API
Specifying the API
Implementing routes
Querying the API
Content negotiation
Cross-origin resource sharing
API versioning
Self-test questions
Summary
4. Using NoSQL Databases
Key/value store - LevelDB
Document store - MongoDB
Database modeling with Mongoose
Testing a Mongoose model with Mocha
Creating a user-defined model around a Mongoose model
Wiring up a NoSQL database module to Express
Content delivery network
Self-test questions
Summary
5. Implementing a Fully-Fledged RESTful Service
Extensibility and versioning
Working with arbitrary data
Linking
Implementing paging and filtering
Caching
Supplying the Cache-Control header in Express applications
Discovering and exploring RESTful services
Self-test questions
Summary
6. Keeping the Bad Guys Out
Authentication
Basic authentication
Passport
Passport's basic authentication strategy
Passport's third-party authentication strategies
Authorization
Transport Layer Security
Self-test questions
Summary
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜