Skip to Content
Hands-On Software Engineering with Golang
book

Hands-On Software Engineering with Golang

by Achilleas Anagnostopoulos
January 2020
Intermediate to advanced
640 pages
16h 56m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Golang

Chapter 9

  1. The following table summarizes the CRUD endpoints for a user entity:
HTTP Verb Path Expects (JSON) Returns (JSON) HTTP Status Description
POST /users A user entry The new user entry and its ID 200 (success) or 201 (created) Create a new user
GET /users Nothing An array with user entries 200 (success) Get a list of users
GET /users/:id Nothing The user with the specified ID 200 (success) or 404 (not found) Get user by ID
PUT /users/:id A user entry The updated user entry 200 (success) or 404 (not found) Update user by ID
PATCH /users/:id A partial user entry The updated user entry 200 (success) or 404 (not found) Update individual fields for a user by ID
DELETE /users/:id Nothing Nothing 200 (success) or 404 (not ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Software Architecture with Golang

Hands-On Software Architecture with Golang

Jyotiswarup Raiturkar

Publisher Resources

ISBN: 9781838554491Supplemental Content