API routes (Click a route to expand it, click here to expand/collapse all)
1. Supplier API
GET/schema/{schemaName}.json ⎘
Provides a json schema based on the name given
| Parameter |
Location |
Type |
Requirements |
Optional |
Default value |
Description |
| schemaName |
URI-Path |
string |
minLength: 3 maxLength: 32 pattern: ^([a-z-_.0-9]+|\*{1})$ |
No |
|
Name of the schema |
| Response |
HTTP |
Type |
Description |
| Success |
200 |
string |
result of the schema json |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
No
POST/supplier/submit ⎘Authentication required
Transfer any type of predefined message to KATE Innovations Inbound port. Simple authentication is performed using a supplier API-Key.
| Parameter |
Location |
Type |
Requirements |
Optional |
Default value |
Description |
| payload |
POST-body |
string |
minLength: 1 maxLength: 4194304 |
No |
|
Message content |
| reference |
POST-body |
string |
maxLength: 512 |
Yes |
"" |
Message reference |
| targetCustomer |
POST-body |
string |
minLength: 1 maxLength: 15 pattern: ^([a-zA-Z0-9-_]+|\*{1})$ |
Yes |
"*" |
Customer ID of the target (receiver). |
| targetDepartment |
POST-body |
string |
minLength: 1 maxLength: 15 pattern: ^([a-zA-Z0-9-_]+|\*{1})$ |
Yes |
"*" |
Department ID of the target (receiver). |
| waitForProcessing |
POST-body |
int |
enum: [
0,
1
] |
Yes |
0 |
0/1-bool. If 0, a response is directly returned after validation and before processing and propagation. If 1, the response is returned once all processed messages are delivered to all consumers. |
| Response |
HTTP |
Type |
Description |
| Success |
200 |
string |
If "waitForProcessing"=0, always returns a string "Validation passed." on success or one of the listed error codes otherwise. If "waitForProcessing"=1, always returns a string "Delivered: # out of #" on success or one of the listed error codes otherwise. |
| InvalidationException |
400 |
|
Supplier specific invalidation. The message was rejected because it did not pass initial validation. See details for specifics. |
| InvalidTargetException |
403 |
|
Specified target (customer + department) is invalid: it does not exist or you are not authorized (yet) to send to this target. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
SupplierAPIKeyAuth
Required flags:
None ⎘
2. Consumer API
GET/consumer/poll ⎘Authentication required
Retrieves any undelivered messages to the Consumer registered to the Consumer API-Key. Simple authentication is performed using a consumer API-Key.
| Parameter |
Location |
Type |
Requirements |
Optional |
Default value |
Description |
| limit |
URI-Query |
int |
minimum: 1 maximum: 100 |
Yes |
10 |
Maximum amount of messages to return. |
| Response |
HTTP |
Type |
Description |
| Success |
200 |
ProcessedMessage[] |
Array of Processed Messages. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
ConsumerAPIKeyAuth
Required flags:
None ⎘
Default APIs
Provides the API-specification. Only enabled if API exposure is enabled.
| Parameter |
Location |
Type |
Requirements |
Optional |
Default value |
Description |
| format |
URI-Query |
string |
enum: [
"KateAPI",
"InternalAPIMap",
"OpenAPI",
"Swagger"
] |
Yes |
"KateAPI" |
Documentation format. We support KateAPI documentation, Swagger/OpenAPI documentation and raw output of the internal API-map cache. |
| openApiVersion |
URI-Query |
int |
enum: [
2,
3
] |
Yes |
2 |
Version 3 is crappy with request bodies, so we prefer version 2 (which only sucks regarding Response definitions; hence we prefer KateAPI documentation). |
| Response |
HTTP |
Type |
Description |
| Success |
200 |
object |
The API-documentation. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
No
Management API
GET/consumer/list ⎘Authentication required
Lists both active and deactivated consumers.
| Response |
HTTP |
Type |
Description |
| Success |
200 |
object |
Object with 2 keys "active" and "deleted", each containing an array of Consumers. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
JWTAuth
Required flags:
kate:admin ⎘
GET/supplier/list ⎘Authentication required
Lists both active and deactivated suppliers.
| Response |
HTTP |
Type |
Description |
| Success |
200 |
object |
Object with 2 keys "active" and "deleted", each containing an array of Suppliers. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
JWTAuth
Required flags:
kate:admin ⎘
POST/consumer/deactivateByName ⎘Authentication required
Deactivate a Consumer by provided exact name.
| Parameter |
Location |
Type |
Requirements |
Optional |
Default value |
Description |
| name |
POST-body |
string |
|
No |
|
Exact name of the Consumer to deactivate |
| Response |
HTTP |
Type |
Description |
| Success |
200 |
object |
Deactivated Consumer. |
| ModelNotFoundException |
404 |
|
Instance of this model with provided ID could not be found. |
| InvalidModelOperationException |
500 |
|
An operation on a model was requested that was not valid/allowed. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
JWTAuth
Required flags:
kate:admin ⎘
POST/consumer/reactivateByName ⎘Authentication required
Reactivate a formerly deactivated Consumer by provided exact name.
| Parameter |
Location |
Type |
Requirements |
Optional |
Default value |
Description |
| name |
POST-body |
string |
|
No |
|
Exact name of the deactivated Consumer to reactivate |
| Response |
HTTP |
Type |
Description |
| Success |
200 |
object |
Reactivated Consumer. |
| ModelNotFoundException |
404 |
|
Instance of this model with provided ID could not be found. |
| InvalidModelOperationException |
500 |
|
An operation on a model was requested that was not valid/allowed. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
JWTAuth
Required flags:
kate:admin ⎘
POST/mgmt/resumeProcessing ⎘Authentication required
Resumes any failed/aborted processing of inbound messages and/or undelivered processed messages. Could be invoked on periodical cron or after reboot.
| Response |
HTTP |
Type |
Description |
| Success |
200 |
object |
Object with 4 keys containing numeric counts: invalidated, processed, delivered, undelivered. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
JWTAuth
Required flags:
kate:admin ⎘
POST/supplier/deactivateByName ⎘Authentication required
Deactivate a Supplier by provided exact name.
| Parameter |
Location |
Type |
Requirements |
Optional |
Default value |
Description |
| name |
POST-body |
string |
|
No |
|
Exact name of the Supplier to deactivate |
| Response |
HTTP |
Type |
Description |
| Success |
200 |
object |
Deactivated Supplier. |
| ModelNotFoundException |
404 |
|
Instance of this model with provided ID could not be found. |
| InvalidModelOperationException |
500 |
|
An operation on a model was requested that was not valid/allowed. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
JWTAuth
Required flags:
('kate:admin' OR 'kate:devops') ⎘
POST/supplier/deleteDeactivatedByName ⎘Authentication required
Delete a deactivated Supplier by provided exact name.
| Parameter |
Location |
Type |
Requirements |
Optional |
Default value |
Description |
| name |
POST-body |
string |
|
No |
|
Exact name of the deactivated Supplier to delete |
| Response |
HTTP |
Type |
Description |
| Success |
200 |
true |
True. |
| ModelNotFoundException |
404 |
|
Instance of this model with provided ID could not be found. |
| InvalidModelOperationException |
500 |
|
An operation on a model was requested that was not valid/allowed. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
JWTAuth
Required flags:
('kate:admin' OR 'kate:devops') ⎘
POST/supplier/reactivateByName ⎘Authentication required
Reactivate a formerly deactivated Supplier by provided exact name.
| Parameter |
Location |
Type |
Requirements |
Optional |
Default value |
Description |
| name |
POST-body |
string |
|
No |
|
Exact name of the deactivated Supplier to reactivate |
| Response |
HTTP |
Type |
Description |
| Success |
200 |
object |
Reactivated Supplier. |
| ModelNotFoundException |
404 |
|
Instance of this model with provided ID could not be found. |
| InvalidModelOperationException |
500 |
|
An operation on a model was requested that was not valid/allowed. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
JWTAuth
Required flags:
('kate:admin' OR 'kate:devops') ⎘
Test API
POST/test/mapping ⎘Authentication required
Provide for the payload + the mapping and get the output as json format.
| Parameter |
Location |
Type |
Requirements |
Optional |
Default value |
Description |
| payload |
POST-body |
string |
format: json |
No |
|
The data to map with J2JMapper. |
| mapping |
POST-body |
string |
format: json |
No |
|
The mapping to be used by the J2JMapper. |
| Response |
HTTP |
Type |
Description |
| Success |
200 |
array |
The output of the mapping as json. |
| MissingRequiredParameterException |
400 |
|
The request is missing a required input parameter. See details for involved parameter. |
| InvalidParameterException |
400 |
|
The request has an invalid argument. See details for involved parameter and invalidation. |
| AuthenticationFailedException |
401 |
|
Authentication failed. Re-authenticate and retry. See error details for details. |
| UnauthorizedException |
403 |
|
Authorization for requested method rejected. See error details for details. |
Authentication required:
Yes
Authentication scheme:
JWTAuth
Required flags:
None ⎘
Authentication schemes (Click an authentication scheme to expand it)
SupplierAPIKeyAuth
| description |
Supplier API-Key in Authorization header as Bearer. |
| example |
Authorization: Bearer xxxxyyyyzzzz |
| realm |
KATEv2.InboundPort.Consumers |
ConsumerAPIKeyAuth
| description |
Consumer API-Key in Authorization header as Bearer. |
| example |
Authorization: Bearer xxxxyyyyzzzz |
| realm |
KATEv2.InboundPort.Consumers |
JWTAuth
| description |
Bearer JWT token in Authorization header. |
| realm |
kate.v2 |
| supportedIssuers |
[
"auth.api.katedev.com",
"legacy-adapter.api.katedev.com",
"auth.api.spring-nl.katetest.com",
"legacy-adapter.api.spring-nl.katetest.com"
] |
| verificationKeyIdentifier |
[
"iss"
] |
| flagsIdentifier |
perm |
| detailsIdentifiers |
{
"idUser": "sub",
"username": "name",
"idCustomer": "idc",
"idDepartment": "idd",
"businessNumber": "bn",
"idSupplier": "ids"
} |
Result wrappers (Click a result-wrapper to expand it)
Success
{
result: < mixed, success result, type specified in API route documentation >,
error: null,
messages: {
"type": "error|warning|success|info|debug",
"namespace": string,
"namedArguments": < optional object that has information referenced in the translation linked to the namespace>
}[],
apiVersion: < string, current serving API version in format ^[0-9]+\.[0-9]+\.[0-9]+(\-[A-Za-z0-9]+)?$ >
}
Error
{
result: null,
error: {
code: < string, response error code as described in API route documentation. Use this code in language translation files. >,
description: < string, optional, technical description of error. Only intended for developers for debug, not suitable for end-users >,
details: < object|array|string, contains detailed data about error, if applicable >
},
messages: {
"type": "error|warning|success|info|debug",
"namespace": string,
"namedArguments": < optional object that has information referenced in the translation linked to the namespace>
}[],
apiVersion: < string, current serving API version in format ^[0-9]+\.[0-9]+\.[0-9]+(\-[A-Za-z0-9]+)?$ >
}