Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6u469kis46DspusiL
14 lines
529 B
Plaintext
14 lines
529 B
Plaintext
== Q22: create returns 201 and a Location header ==
|
|
POST /customers {"name":"Asha"}
|
|
status = 201
|
|
Location = /customers/1
|
|
body = {"id":1,"name":"Asha"}
|
|
== Q23: bean validation turns into 400 ==
|
|
POST /customers {"name":"A"} (@Size(min = 2))
|
|
status = 400
|
|
body = {"detail":"Invalid request content.","status":400,"title":"Bad Request"}
|
|
== Q24: a missing resource is a 404 problem response ==
|
|
GET /customers/99
|
|
status = 404
|
|
body = {"detail":"customer 99 not found","status":404,"title":"Customer not found"}
|