go test ./httpserver -vgo run main.go
# Server running on http://localhost:3333curl -X POST http://localhost:3333/user \
-H "Content-Type: application/json" \
-d '{"name":"New User"}'curl "http://localhost:3333/user?id=1"curl -X PATCH http://localhost:3333/user \
-H "Content-Type: application/json" \
-d '{"id":1,"name":"Updated Name"}'curl -X DELETE "http://localhost:3333/user?id=1"curl http://localhost:3333/curl http://localhost:3333/hello| Code | Description |
|---|---|
| 200 | OK |
| 201 | Created |
| 204 | No Content |
| 400 | Bad Request |
| 404 | Not Found |
| 405 | Method Not Allowed |
| 409 | Conflict |