Direction | Attribute | Description | ServiceAdapter Implementation | API Implementation |
---|
Request
| Accepted Request Content Type | Define which content types the endpoint accepts. |
---|
Reject Other Request Content Types | Define if other content types should be rejected with HTTP 406 (Not Acceptable). |
Response
| Blob Body Content Type | Define which content types the endpoint can return to the client. |
Reject Other Response Content Type | Define if the service should reject the request with HTTP 415 (Unsupported Media Type) if the client request has divergent accept headers. |
Adapter | Info |
---|
You can only change the settings for adapter calls once you have copied the REST interface from the connector to your own service implementation - or if you have defined it manually from the beginning. |
|
Defines the content types of the request body. | Request
Blob Body Content Type | Specify which content type you are sending with your request. The Runtime generates a matching "Content-Type" header to your request. | Define which content types the endpoint accepts. |
Reject Other | Response Content TypeRequest Content Types | Triggers a content type check by the xUML Runtime. | Specifies if the REST adapter should reject calls to this endpoint if a request uses a custom content type that does not match the content types listed in | Blob Body Accepted Request Content Type. This can be the case if you set the | content"Content- | typeType" header manually. If set to true, and the | content"Content- | typeType" header does not match, the adapter does not contact the endpoint at all but rejects calls with an exception (Endpoint '<endpoint URL>' does not declare '<content type>' as accepted content type ). | Define if other content types than defined with Accepted Request | content type not declared as Content Type should be rejected with HTTP 415 (Unsupported Media Type). The Runtime reads the related "Content-Type" header and compares it to the content types that are accepted by the service (Accepted Request Content Type). |
Response
| Accepted Request Blob Body Content Type | Defines the content type of the response body. | Specify a list of content types you accept as a response. The Runtime generates a matching "Accept" header to your request. | Define which content types the endpoint can return to the client. |
---|
Reject Other | Request Content TypesResponse Content Type | Triggers a content type check by the xUML Runtime. | Specifies if the REST adapter should reject calls to this endpoint if a request uses a custom content type that does not match the content types listed in | Accepted Request Blob Body Content Type. This can be the case if you set the | accept "Accept" header manually. If set to true, and the | accept "Accept" header does not match the content types the service can provide, the adapter does not contact the endpoint at all but rejects calls with an exception (Set "accept" header does not accept any of declared response content types ). | Define if the service should reject the request with HTTP 406 (Unsupported Media Type) if the client request has accept headers that differ from the ones defined with Blob Body Content Type. The Runtime reads the related "Accept" header and compares it to the content types that can be provided by the service (Blob Body Content Type). |