Example endpoint

Example endpoint

GET
/v2/example

Get an example message

Returns an example message.

Status codes

Success

Code Reason
200 - OK Request was successful.

Error

Code Reason
405 - Method Not Allowed The method is not allowed for the requested URL.

Response

Name In Type Description
msg body string Contains “This is an example endpoint”
POST
/v2/example

Submit a fruit

Returns the fruit you sent.

Name In Type Description
fruit body string A fruit. Must one of [banana, strawberry]

Status codes

Success

Code Reason
200 - OK Request was successful.
400 - Bad Request Invalid request.

Error

Code Reason
400 - Bad Request Invalid request.
403 - Forbidden This fruit is forbidden.
405 - Method Not Allowed The method is not allowed for the requested URL.

Response

Name In Type Description
msg body string Contains “Your fruit is a <fruit>”
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.