Hands-On RESTful Web Services with TypeScript 3: Design and develop scalable RESTful APIs for your applications

Biharck Muniz Araujo

  • 出版商: Packt Publishing
  • 出版日期: 2019-03-25
  • 售價: $1,750
  • 貴賓價: 9.5$1,663
  • 語言: 英文
  • 頁數: 470
  • 裝訂: Paperback
  • ISBN: 1789956277
  • ISBN-13: 9781789956276
  • 相關分類: Web APIJVM 語言JavaScriptTypeScript
  • 海外代購書籍(需單獨結帳)
    無現貨庫存(No stock available)

買這商品的人也買了...

商品描述

Key Features

  • Gain in-depth knowledge of OpenAPI and Swagger to build scalable web services
  • Explore a variety of test frameworks and test runners such as Stryker, Mocha, and Chai
  • Create a pipeline by Dockerizing your environment using Travis CI, Google Cloud Platform, and GitHub

Book Description

In the world of web development, leveraging data is the key to developing comprehensive applications, and RESTful APIs help you to achieve this systematically. This book will guide you in designing and developing web services with the power of TypeScript 3 and Node.js. You'll design REST APIs using best practices for request handling, validation, authentication, and authorization. You'll also understand how to enhance the capabilities of your APIs with ODMs, databases, models and views, as well as asynchronous callbacks. This book will guide you in securing your environment by testing your services and initiating test automation with different testing approaches. Furthermore, you'll get to grips with developing secure, testable, and more efficient code, and be able to scale and deploy TypeScript 3 and Node.js-powered RESTful APIs on cloud platforms such as the Google Cloud Platform. Finally, the book will help you explore microservices and give you an overview of what GraphQL can allow you to do.

By the end of this book, you will be able to use RESTful web services to create your APIs for mobile and web apps and other platforms.

What you will learn

  • Explore various methods to plan your services in a scalable way
  • Understand how to handle different request types and the response status code
  • Get to grips with securing web services
  • Delve into error handling and logging your web services for improved debugging
  • Uncover the microservices architecture and GraphQL
  • Create automated CI/CD pipelines for release and deployment strategies

Who this book is for

If you're a developer who has a basic understanding of REST concepts and want to learn how to design and develop RESTful APIs, this book is for you. Prior knowledge of TypeScript will help you make the most out of this book.

商品描述(中文翻譯)

主要特點


  • 深入了解OpenAPI和Swagger,以建立可擴展的網路服務

  • 探索各種測試框架和測試運行器,如Stryker、Mocha和Chai

  • 使用Travis CI、Google Cloud Platform和GitHub將環境Docker化,建立流程

書籍描述

在網路開發的世界中,利用數據是開發全面應用程式的關鍵,而RESTful API可以幫助您系統地實現這一點。本書將指導您使用TypeScript 3和Node.js設計和開發網路服務。您將使用最佳實踐來設計REST API,包括請求處理、驗證、身份驗證和授權。您還將了解如何通過ODM、數據庫、模型和視圖以及異步回調來增強API的功能。本書還將指導您通過測試服務並使用不同的測試方法啟動測試自動化來保護您的環境。此外,您還將掌握開發安全、可測試和更高效的代碼的技巧,並能夠在Google Cloud Platform等雲平台上擴展和部署基於TypeScript 3和Node.js的RESTful API。最後,本書將幫助您探索微服務並瞭解GraphQL的應用。

通過閱讀本書,您將能夠使用RESTful網路服務為移動應用程式、Web應用程式和其他平台創建API。

您將學到什麼


  • 探索各種方法以可擴展的方式規劃服務

  • 瞭解如何處理不同類型的請求和回應狀態碼

  • 深入瞭解保護網路服務的方法

  • 深入瞭解錯誤處理和記錄網路服務以進行更好的調試

  • 瞭解微服務架構和GraphQL

  • 建立自動化的CI/CD流程以進行發布和部署策略

本書適合對象

如果您是一位對REST概念有基本了解並希望學習如何設計和開發RESTful API的開發人員,本書適合您。具備TypeScript的先備知識將有助於您充分利用本書的內容。

目錄大綱

Table of Contents

  1. Introduction to RESTful API Development
  2. Principles of Designing RESTful APIs
  3. Designing RESTful APIs with OpenAPI and Swagger
  4. Setting up Your Development Environment
  5. Building Your First API
  6. Handling Requests and Responses
  7. Formatting the API - Output
  8. Working with Databases and ORMs
  9. Securing Your API
  10. Error Handling and Logging
  11. Creating a CI/CD Pipeline for Your API
  12. Developing RESTful APIs with Microservices
  13. Flexible APIs with GraphQL

目錄大綱(中文翻譯)

目錄


  1. RESTful API 開發入門

  2. 設計 RESTful API 的原則

  3. 使用 OpenAPI 和 Swagger 設計 RESTful API

  4. 建立開發環境

  5. 建立第一個 API

  6. 處理請求和回應

  7. 格式化 API - 輸出

  8. 使用資料庫和 ORM

  9. 保護您的 API

  10. 錯誤處理和日誌記錄

  11. 為您的 API 建立 CI/CD 流程

  12. 使用微服務開發 RESTful API

  13. 使用 GraphQL 建立靈活的 API