Overview

HTTP verbs

Tourism media (Travel Content Service) tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP verbs.

Verb Usage

GET

Used to retrieve a resource

POST

Used to create a new resource

PATCH

Used to update an existing resource, including partial updates

DELETE

Used to delete an existing resource

HTTP status codes

Tourism media (Travel Content Service) tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP status codes.

Status code Usage

200 OK

The request completed successfully

201 Created

A new resource has been created successfully. The resource’s URI is available from the response’s Location header

204 No Content

An update to an existing resource has been applied successfully

400 Bad Request

The request was malformed. The response body will include an error providing further information

404 Not Found

The requested resource did not exist

Rest API

Generate a message

Generate a message

Curl Request

Unresolved directive in api-hello-controller-guide.adoc - include::/home/runners/actions-runner/_work/plp-commissions-calculator-feed-service/plp-commissions-calculator-feed-service/target/generated-snippets/hello-controller/curl-request.adoc[]

Http ie Request

Unresolved directive in api-hello-controller-guide.adoc - include::/home/runners/actions-runner/_work/plp-commissions-calculator-feed-service/plp-commissions-calculator-feed-service/target/generated-snippets/hello-controller/httpie-request.adoc[]

Http Request

Unresolved directive in api-hello-controller-guide.adoc - include::/home/runners/actions-runner/_work/plp-commissions-calculator-feed-service/plp-commissions-calculator-feed-service/target/generated-snippets/hello-controller/http-request.adoc[]

Request parameters

Unresolved directive in api-hello-controller-guide.adoc - include::/home/runners/actions-runner/_work/plp-commissions-calculator-feed-service/plp-commissions-calculator-feed-service/target/generated-snippets/hello-controller/path-parameters.adoc[]

Http Response

Unresolved directive in api-hello-controller-guide.adoc - include::/home/runners/actions-runner/_work/plp-commissions-calculator-feed-service/plp-commissions-calculator-feed-service/target/generated-snippets/hello-controller/http-response.adoc[]

Response fields

Unresolved directive in api-hello-controller-guide.adoc - include::/home/runners/actions-runner/_work/plp-commissions-calculator-feed-service/plp-commissions-calculator-feed-service/target/generated-snippets/hello-controller/response-fields.adoc[]