- RESTful Web API Design with Node.js 10
- Valentin Bojinov
- 213字
- 2021-08-27 18:37:23
Conventions used
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database tale names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows:
"This tells npm that our package depends on the URL and express modules."
A block of code is set as follows:
router.get('/v1/item/:itemId', function(request, response, next) {
console.log(request.url + ' : querying for ' + request.params.itemId);
catalogV1.findItemById(request.params.itemId, response);
});
router.get('/v1/:categoryId', function(request, response, next) {
console.log(request.url + ' : querying for ' + request.params.categoryId);
catalogV1.findItemsByCategory(request.params.categoryId, response);
});
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
router.get('/v1/:categoryId', function(request, response, next) {
console.log(request.url + ' : querying for ' + request.params.categoryId);
catalogV1.findItemsByCategory(request.params.categoryId, response);
});
Any command-line input or output is written as follows:
$ npm install -g express
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example:
- LabVIEW Graphical Programming Cookbook
- 造個小程序:與微信一起干件正經事兒
- Leap Motion Development Essentials
- Mastering SVG
- Vue.js 3.x從入門到精通(視頻教學版)
- 從程序員到架構師:大數據量、緩存、高并發、微服務、多團隊協同等核心場景實戰
- HTML5+CSS3基礎開發教程(第2版)
- Learning Informatica PowerCenter 10.x(Second Edition)
- SQL語言從入門到精通
- Flash CS6中文版應用教程(第三版)
- Android系統級深入開發
- NoSQL數據庫原理
- D3.js By Example
- 計算機應用基礎項目化教程
- Unity 2017 Game AI Programming(Third Edition)