http://github.com/folio-org/mod-orders-storage
Get list of orders-storage configuration API. This API is intended for internal use only. Please use the /orders/configuration API provided by mod-orders instead.
Create new reason for closure
POST /orders-storage/configuration/reasons-for-closure
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Reason for closure object",
"type": "object",
"javaType": "org.folio.rest.jaxrs.model.ReasonForClosure",
"properties": {
"id": {
"description": "UUID of this Reason for closure record",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"reason": {
"description": "Reason for closure",
"type": "string"
},
"source": {
"description": "Source of reason for closure",
"type": "string",
"enum": [
"User",
"System"
],
"default": "User"
}
},
"additionalProperties": false,
"required": [
"reason",
"source"
]
}
Example:
{
"reason": "Lack of funds",
"source": "System"
}
Returns a newly created item, with server-controlled fields like 'id' populated
URI to the created reasons-for-closure item
Media type: application/json
Type: any
Example:
{
"reason": "Lack of funds",
"source": "System"
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to add reasons-for-closure -- malformed JSON at 13:3"
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
unable to create reasons-for-closure -- unauthorized
Validation errors
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Get list of reasons for closure
GET /orders-storage/configuration/reasons-for-closure
A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
with valid searchable fields: for example reasonForClosure
Example:
(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode
["reasonForClosure", "Denied", "="]
How to calculate the totalRecords property. "exact" for the correct number, "estimated" for an estimation, "auto" to automatically select "exact" or "estimated", "none" for suppressing the totalRecords property. For details see https://github.com/folio-org/raml-module-builder#estimated-totalrecords
Example:
none
Skip over a number of elements by specifying an offset value for the query
Example:
0
Limit the number of elements returned in the response
Example:
10
Returns a list of reasons-for-closure items
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Collection of reasons for closure",
"type": "object",
"properties": {
"reasonsForClosure": {
"description": "Collection of reasons for closure",
"type": "array",
"id": "reasonsForClosure",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Reason for closure object",
"javaType": "org.folio.rest.jaxrs.model.ReasonForClosure",
"properties": {
"id": {
"description": "UUID of this Reason for closure record",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"reason": {
"description": "Reason for closure",
"type": "string"
},
"source": {
"description": "Source of reason for closure",
"type": "string",
"enum": [
"User",
"System"
],
"default": "User"
}
},
"additionalProperties": false,
"required": [
"reason",
"source"
]
}
},
"totalRecords": {
"description": "The number of objects contained in this collection",
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"reasonsForClosure",
"totalRecords"
]
}
Example:
{
"reasonsForClosure":
[
{
"id": "41153a11-6bb8-4217-93b8-0c83c8b019f5",
"reason": "Lack of funds",
"source": "System"
}
],
"totalRecords": 1
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
unable to list reasons-for-closure -- malformed parameter 'query', syntax error at column 6
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
unable to list reasons-for-closure -- unauthorized
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Update reason for closure
PUT /orders-storage/configuration/reasons-for-closure/{id}
The UUID of a reason for closure
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Reason for closure object",
"type": "object",
"javaType": "org.folio.rest.jaxrs.model.ReasonForClosure",
"properties": {
"id": {
"description": "UUID of this Reason for closure record",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"reason": {
"description": "Reason for closure",
"type": "string"
},
"source": {
"description": "Source of reason for closure",
"type": "string",
"enum": [
"User",
"System"
],
"default": "User"
}
},
"additionalProperties": false,
"required": [
"reason",
"source"
]
}
Example:
{
"id": "41153a11-6bb8-4217-93b8-0c83c8b019f5",
"reason": "Lack of funds",
"source": "System"
}
Item successfully updated
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to update reasons-for-closure -- malformed JSON at 13:4"
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"reasons-for-closure not found"
Optimistic locking version conflict
Media type: text/plain
Type: any
Example:
version conflict
Validation errors
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Retrieve reasons-for-closure item with given {reasons-for-closureId}
GET /orders-storage/configuration/reasons-for-closure/{id}
The UUID of a reason for closure
Returns item with a given ID
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Reason for closure object",
"type": "object",
"javaType": "org.folio.rest.jaxrs.model.ReasonForClosure",
"properties": {
"id": {
"description": "UUID of this Reason for closure record",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"reason": {
"description": "Reason for closure",
"type": "string"
},
"source": {
"description": "Source of reason for closure",
"type": "string",
"enum": [
"User",
"System"
],
"default": "User"
}
},
"additionalProperties": false,
"required": [
"reason",
"source"
]
}
Example:
{
"id": "41153a11-6bb8-4217-93b8-0c83c8b019f5",
"reason": "Lack of funds",
"source": "System"
}
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"reasons-for-closure not found"
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Delete reasons-for-closure item with given {reasons-for-closureId}
DELETE /orders-storage/configuration/reasons-for-closure/{id}
The UUID of a reason for closure
Item deleted successfully
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to delete reasons-for-closure -- constraint violation"
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"reasons-for-closure not found"
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Create new prefix
POST /orders-storage/configuration/prefixes
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Purchase order number prefix",
"type": "object",
"properties": {
"id": {
"description": "UUID of this prefix",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"name": {
"description": "Prefix name",
"type": "string"
},
"description": {
"description": "Prefix description",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Example:
{
"name": "Custom prefix",
"description": "Custom prefix description"
}
Returns a newly created item, with server-controlled fields like 'id' populated
URI to the created prefix item
Media type: application/json
Type: any
Example:
{
"name": "Custom prefix",
"description": "Custom prefix description"
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to add prefix -- malformed JSON at 13:3"
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
unable to create prefixes -- unauthorized
Validation errors
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Get list of prefixes
GET /orders-storage/configuration/prefixes
A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
with valid searchable fields: for example prefix
Example:
(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode
["prefix", "Prx", "="]
How to calculate the totalRecords property. "exact" for the correct number, "estimated" for an estimation, "auto" to automatically select "exact" or "estimated", "none" for suppressing the totalRecords property. For details see https://github.com/folio-org/raml-module-builder#estimated-totalrecords
Example:
none
Skip over a number of elements by specifying an offset value for the query
Example:
0
Limit the number of elements returned in the response
Example:
10
Returns a list of prefix items
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Collection of purchase order number prefixes",
"type": "object",
"properties": {
"prefixes": {
"description": "Collection of prefixes",
"type": "array",
"id": "prefixes",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Purchase order number prefix",
"properties": {
"id": {
"description": "UUID of this prefix",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"name": {
"description": "Prefix name",
"type": "string"
},
"description": {
"description": "Prefix description",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
},
"totalRecords": {
"description": "The number of objects contained in this collection",
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"prefixes",
"totalRecords"
]
}
Example:
{
"prefixes":
[
{
"id": "db9f5d17-0ca3-4d14-ae49-16b63c8fc083",
"name": "Custom prefix",
"description": "Custom prefix description"
}
],
"totalRecords": 1
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
unable to list prefixes -- malformed parameter 'query', syntax error at column 6
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
unable to list prefixes -- unauthorized
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Update prefix
PUT /orders-storage/configuration/prefixes/{id}
The UUID of a prefix
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Purchase order number prefix",
"type": "object",
"properties": {
"id": {
"description": "UUID of this prefix",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"name": {
"description": "Prefix name",
"type": "string"
},
"description": {
"description": "Prefix description",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Example:
{
"id": "db9f5d17-0ca3-4d14-ae49-16b63c8fc083",
"name": "Custom prefix",
"description": "Custom prefix description"
}
Item successfully updated
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to update prefix -- malformed JSON at 13:4"
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"prefix not found"
Optimistic locking version conflict
Media type: text/plain
Type: any
Example:
version conflict
Validation errors
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Retrieve prefix item with given {prefixId}
GET /orders-storage/configuration/prefixes/{id}
The UUID of a prefix
Returns item with a given ID
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Purchase order number prefix",
"type": "object",
"properties": {
"id": {
"description": "UUID of this prefix",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"name": {
"description": "Prefix name",
"type": "string"
},
"description": {
"description": "Prefix description",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Example:
{
"id": "db9f5d17-0ca3-4d14-ae49-16b63c8fc083",
"name": "Custom prefix",
"description": "Custom prefix description"
}
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"prefix not found"
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Delete prefix item with given {prefixId}
DELETE /orders-storage/configuration/prefixes/{id}
The UUID of a prefix
Item deleted successfully
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to delete prefix -- constraint violation"
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"prefix not found"
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Create new suffix
POST /orders-storage/configuration/suffixes
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Purchase order number suffix",
"type": "object",
"properties": {
"id": {
"description": "UUID of this suffix",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"name": {
"description": "Suffix name",
"type": "string"
},
"description": {
"description": "Suffix description",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Example:
{
"name": "Custom suffix",
"description": "Custom suffix description"
}
Returns a newly created item, with server-controlled fields like 'id' populated
URI to the created suffix item
Media type: application/json
Type: any
Example:
{
"name": "Custom suffix",
"description": "Custom suffix description"
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to add suffix -- malformed JSON at 13:3"
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
unable to create suffixes -- unauthorized
Validation errors
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator
Get list of suffixes
GET /orders-storage/configuration/suffixes
A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.
with valid searchable fields: for example suffix
Example:
(username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode
["code", "Sfx", "="]
How to calculate the totalRecords property. "exact" for the correct number, "estimated" for an estimation, "auto" to automatically select "exact" or "estimated", "none" for suppressing the totalRecords property. For details see https://github.com/folio-org/raml-module-builder#estimated-totalrecords
Example:
none
Skip over a number of elements by specifying an offset value for the query
Example:
0
Limit the number of elements returned in the response
Example:
10
Returns a list of suffix items
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Collection of purchase order number suffixes",
"type": "object",
"properties": {
"suffixes": {
"description": "Collection of suffixes",
"type": "array",
"id": "suffixes",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Purchase order number suffix",
"properties": {
"id": {
"description": "UUID of this suffix",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"name": {
"description": "Suffix name",
"type": "string"
},
"description": {
"description": "Suffix description",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
},
"totalRecords": {
"description": "The number of objects contained in this collection",
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"suffixes",
"totalRecords"
]
}
Example:
{
"suffixes":
[
{
"id": "0c966bd2-0ca6-43a2-9388-3a4403f19e6f",
"name": "Custom suffix",
"description": "Custom suffix description"
}
],
"totalRecords": 1
}
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
unable to list suffixes -- malformed parameter 'query', syntax error at column 6
Not authorized to perform requested action
Media type: text/plain
Type: any
Example:
unable to list suffixes -- unauthorized
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Update suffix
PUT /orders-storage/configuration/suffixes/{id}
The UUID of a suffix
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Purchase order number suffix",
"type": "object",
"properties": {
"id": {
"description": "UUID of this suffix",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"name": {
"description": "Suffix name",
"type": "string"
},
"description": {
"description": "Suffix description",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Example:
{
"id": "0c966bd2-0ca6-43a2-9388-3a4403f19e6f",
"name": "Custom suffix",
"description": "Custom suffix description"
}
Item successfully updated
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to update suffix -- malformed JSON at 13:4"
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"suffix not found"
Optimistic locking version conflict
Media type: text/plain
Type: any
Example:
version conflict
Validation errors
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "errors.schema",
"description": "A set of errors",
"type": "object",
"properties": {
"errors": {
"description": "List of errors",
"id": "errors",
"type": "array",
"items": {
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "error.schema",
"description": "An error",
"properties": {
"message": {
"type": "string",
"description": "Error message text"
},
"type": {
"type": "string",
"description": "Error message type"
},
"code": {
"type": "string",
"description": "Error message code"
},
"parameters": {
"description": "Error message parameters",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "parameters.schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": [
"message"
]
}
},
"total_records": {
"description": "Total number of errors",
"type": "integer"
}
}
}
Example:
{
"errors": [
{
"message": "may not be null",
"type": "1",
"code": "-1",
"parameters": [
{
"key": "moduleTo",
"value": "null"
}
]
}
]
}
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Retrieve suffix item with given {suffixId}
GET /orders-storage/configuration/suffixes/{id}
The UUID of a suffix
Returns item with a given ID
Media type: application/json
Type: json
Content:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Purchase order number suffix",
"type": "object",
"properties": {
"id": {
"description": "UUID of this suffix",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"name": {
"description": "Suffix name",
"type": "string"
},
"description": {
"description": "Suffix description",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Example:
{
"id": "0c966bd2-0ca6-43a2-9388-3a4403f19e6f",
"name": "Custom suffix",
"description": "Custom suffix description"
}
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"suffix not found"
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
internal server error, contact administrator
Delete suffix item with given {suffixId}
DELETE /orders-storage/configuration/suffixes/{id}
The UUID of a suffix
Item deleted successfully
Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.
Media type: text/plain
Type: any
Example:
"unable to delete suffix -- constraint violation"
Item with a given ID not found
Media type: text/plain
Type: any
Example:
"suffix not found"
Internal server error, e.g. due to misconfiguration
Media type: text/plain
Type: any
Example:
Internal server error, contact administrator