問題文
In a RAML 1.0 specification, a POST to /invoices must return the created invoice along with a 201 status code. Which RAML structure declares that response body?
選択肢
- Add a body node directly under the post method and set a statusCode property inside it.
- Add a created node under the post method and set its type to the invoice type.
- Add a 201 node at the root of the specification so that every method in the specification shares the same success response, and then reference it from the post method with the is keyword.
- Under the post method, add a responses node, then a 201 node, then a body node whose media type points at the invoice type.