- Building RESTful Web services with Go
- Naren Yellavula
- 205字
- 2021-07-02 20:14:06
Summary
In this chapter, we gave an introduction to the REST API. We saw that REST is not a protocol, but an architectural pattern. HTTP is the actual protocol on which we can implement our REST service. We jumped into the fundamentals of the REST API to be clear about what they actually are. Then we explored types of web services. Before REST, we have something called SOAP, which uses XML as the data format. REST operates on JSON as the primary format. REST has verbs and status codes. We saw what a given status code refers to. We built a simple service which serves the Roman numerals for given numbers. In this process, we also saw how to package a Go project. We understood the GOPATH environment variable. It is a workspace defining a variable in Go. All packages and projects reside in that path. We then saw how to reload a development project on the fly with the help of supervisord and Gulp. These are node tools but can help us to keep our Go project up and running.
In the next chapter, we dig deeper into URL routing. Starting from the built-in router, we explore Gorilla Mux, a powerful URL routing library.
- 智慧城市:大數(shù)據(jù)、互聯(lián)網(wǎng)時代的城市治理(第4版)
- C++黑客編程揭秘與防范
- Truffle Quick Start Guide
- Learning QGIS 2.0
- 信息通信網(wǎng)絡(luò)建設(shè)安全管理概要2
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(2021—2023)
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- Android UI Design
- Microsoft Power Platform Enterprise Architecture
- 圖解物聯(lián)網(wǎng)
- 區(qū)塊鏈社區(qū)運營手冊
- 物聯(lián)網(wǎng)與智慧廣電
- ReasonML Quick Start Guide
- 通信系統(tǒng)實戰(zhàn)筆記:無處不在的信號處理
- 無線傳感器網(wǎng)絡(luò)定位方法及應(yīng)用