RESTful Web API Design with Node.js 10: Learn to create robust RESTful web services with Node.js, MongoDB, and Express.js, 3rd Edition (Node.js 10 RESTful 網路 API 設計:使用 Node.js、MongoDB 和 Express.js 創建穩健的 RESTful 網路服務(第三版))

Valentin Bojinov

  • 出版商: Packt Publishing
  • 出版日期: 2018-04-30
  • 售價: $1,440
  • 貴賓價: 9.5$1,368
  • 語言: 英文
  • 頁數: 178
  • 裝訂: Paperback
  • ISBN: 1788623320
  • ISBN-13: 9781788623322
  • 相關分類: NoSQLMongoDBNode.js
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Design and implement scalable and maintainable RESTful solutions with Node.js 10

Key Features

  • Create rich and scalable RESTful API solutions from scratch
  • Explore the new features of Node.js 10, Express 4.0, and MongoDB
  • Integrate MongoDB in your Node.js application to store and secure your data

Book Description

When building RESTful services, it is really important to choose the right framework. Node.js, with its asynchronous, event-driven architecture, is exactly the right choice for building RESTful APIs.

This third edition of RESTful Web API Design with Node.js 10 will teach you to create scalable and rich RESTful applications based on the Node.js platform. You will be introduced to the latest NPM package handler and understand how to use it to customize your RESTful development process. You will begin by understanding the key principle that makes an HTTP application a RESTful-enabled application. After writing a simple HTTP request handler, you will create and test Node.js modules using automated tests and mock objects; explore using the NoSQL database, MongoDB, to store data; and get to grips with using self-descriptive URLs. You'll learn to set accurate HTTP status codes along with understanding how to keep your applications backward-compatible. Also, while implementing a full-fledged RESTful service, you will use Swagger to document the API and implement automation tests for a REST-enabled endpoint with Mocha. Lastly, you will explore some authentication techniques to secure your application.

What you will learn

  • Install, develop, and test your own Node.js user modules
  • Understand the differences between HTTP and RESTful applications
  • Use self-descriptive URLs and set accurate HTTP status codes
  • Eliminate third-party dependencies in your tests with mocking
  • Implement automation tests for a REST-enabled endpoint with Mocha
  • Secure your services with NoSQL database integration within Node.js applications
  • Integrate a simple frontend using JavaScript libraries available on a CDN server

Who This Book Is For

If you are a web developer keen to enrich your development skills to create server-side RESTful applications based on the Node.js platform, this book is for you. Some knowledge of REST would be an added advantage, but is definitely not a necessity.

Table of Contents

  1. REST - What You Did Not Know
  2. Getting Started with Node.js
  3. Building a Typical Web API
  4. Using NoSQL Databases
  5. Restful API Design Guidelines
  6. Implementing a Full fledged RESTful Service
  7. Preparing a RESTful API for Production
  8. Consuming a RESTful API
  9. Securing the application

商品描述(中文翻譯)

設計並實現可擴展且易於維護的 Node.js 10 RESTful 解決方案

主要特點:
- 從頭開始創建豐富且可擴展的 RESTful API 解決方案
- 探索 Node.js 10、Express 4.0 和 MongoDB 的新功能
- 將 MongoDB 整合到您的 Node.js 應用程序中,以存儲和保護數據

書籍描述:
在構建 RESTful 服務時,選擇正確的框架非常重要。Node.js 的異步、事件驅動架構正是構建 RESTful API 的正確選擇。

《RESTful Web API Design with Node.js 10》第三版將教您基於 Node.js 平台創建可擴展且豐富的 RESTful 應用程序。您將介紹最新的 NPM 包處理程序,並了解如何使用它來自定義 RESTful 開發流程。您將首先了解使 HTTP 應用程序成為 RESTful 啟用應用程序的關鍵原則。在編寫簡單的 HTTP 請求處理程序之後,您將使用自動化測試和模擬對象創建和測試 Node.js 模塊;探索使用 NoSQL 數據庫 MongoDB 存儲數據;並熟悉使用自描述 URL。您將學習設置準確的 HTTP 狀態碼,並了解如何保持應用程序的向後兼容性。此外,在實現一個完整的 RESTful 服務時,您將使用 Swagger 文檔化 API,並使用 Mocha 實施 REST 啟用端點的自動化測試。最後,您將探索一些身份驗證技術來保護應用程序。

您將學到的內容:
- 安裝、開發和測試自己的 Node.js 用戶模塊
- 理解 HTTP 和 RESTful 應用程序之間的差異
- 使用自描述 URL 並設置準確的 HTTP 狀態碼
- 使用模擬消除測試中的第三方依賴項
- 使用 Mocha 實施 REST 啟用端點的自動化測試
- 通過 NoSQL 數據庫整合在 Node.js 應用程序中保護您的服務
- 使用 CDN 伺服器上可用的 JavaScript 函式庫集成簡單的前端

本書適合對基於 Node.js 平台創建服務端 RESTful 應用程序感興趣的網絡開發人員。對 REST 有一些了解將是一個額外的優勢,但絕對不是必需的。

目錄:
1. REST - 你不知道的事情
2. 開始使用 Node.js
3. 構建典型的 Web API
4. 使用 NoSQL 數據庫
5. RESTful API 設計準則
6. 實施一個完整的 RESTful 服務
7. 為生產準備 RESTful API
8. 使用 RESTful API
9. 保護應用程序