Footnotes Category Control Open API
{
"openapi": "3.0.1",
"info": {
"title": "Record2 Services",
"description": "Record2Footnotes Services",
"termsOfService": "http://www.atpco.net",
"license": {
"name": "ATPCO license policy",
"url": "http://www.atpco.net"
},
"version": "0.32.0-SNAPSHOT"
},
"servers": [
{
"url": "https://gold.apis.atpco.net/ftntscatctrl-gold",
"description": "Generated server url"
}
],
"paths": {
"/api/v1/footnotes/footnotecategorycontrol": {
"post": {
"tags": [
"record-2-controller"
],
"summary": "Rec2 footnotes POST API",
"operationId": "createCatControl",
"parameters": [
{
"name": "GATEWAY_USER_ID",
"in": "header",
"required": true,
"schema": {
"type": "string"
}
},
{
"in": "query"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CategoryControlRequestVO"
}
}
},
"required": true
},
"responses": {
"422": {
"description": "Unprocessable Entity",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CategoryControlRequestVO"
}
}
}
},
"500": {
"description": "Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CategoryControlResponseVO"
}
}
}
},
"201": {
"description": "Successful",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CategoryControlResponseVO"
}
}
}
}
}
}
},
"/api/v1/footnotes/footnotecategorycontrol/ping": {
"get": {
"tags": [
"record-2-controller"
],
"summary": "Rec2 footnotes PING API",
"operationId": "ping",
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"APIMessage": {
"type": "object",
"properties": {
"errors": {
"type": "array",
"items": {
"type": "string"
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"BatchVo": {
"type": "object",
"properties": {
"msgs": {
"$ref": "#/components/schemas/APIMessage"
},
"batchId": {
"pattern": "^$|^[A-Za-z0-9]{0,2}\\s{1}[0-9]{0,5}$",
"type": "string"
},
"batchEffDt": {
"pattern": "^$|^(?:(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)0229|[1-9]\\d{3}(?:(?:0[1-9]|1[0-2])(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])(?:29|30)|(?:0[13578]|1[02])31))$",
"type": "string"
},
"comments": {
"type": "string"
}
}
},
"CategoryControlRequestVO": {
"type": "object",
"properties": {
"msgs": {
"$ref": "#/components/schemas/APIMessage"
},
"categoryControl": {
"$ref": "#/components/schemas/CategoryControlVO"
}
}
},
"CategoryControlVO": {
"required": [
"batch",
"carrier",
"catNumber",
"footnote",
"sequences",
"tariff"
],
"type": "object",
"properties": {
"msgs": {
"$ref": "#/components/schemas/APIMessage"
},
"errorOvrrdblWarnings": {
"pattern": "^[YyNn]{0,1}$",
"type": "string"
},
"tariff": {
"pattern": "^\\s*[A-Za-z][A-Za-z0-9]{1,6}\\s*|\\s*[0-9]{0,3}\\s*$",
"type": "string"
},
"tariffType": {
"pattern": "^$|^[AaPp_]{0,1}$",
"type": "string"
},
"carrier": {
"pattern": "^$|^[A-Za-z0-9\\*]{2}$",
"type": "string"
},
"footnote": {
"pattern": "^[A-Za-z0-9]{0,2}$",
"type": "string"
},
"catNumber": {
"pattern": "^$|^(([0]?[3])|(1[4-5])|11|23)$",
"type": "string"
},
"workUnit": {
"$ref": "#/components/schemas/WorkUnitVO"
},
"batch": {
"$ref": "#/components/schemas/BatchVo"
},
"sequences": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SequenceVO"
}
}
}
},
"LocationVO": {
"type": "object",
"properties": {
"msgs": {
"$ref": "#/components/schemas/APIMessage"
},
"type": {
"pattern": "^[CcNnAaZzSs]{0,1}$",
"type": "string"
},
"code": {
"pattern": "^$|^(?:[a-zA-Z]{2}|[a-zA-Z]{3}|\\d{2}|\\d{3}|[a-zA-Z]{2} [a-zA-Z]{2})$",
"type": "string"
}
}
},
"SequenceVO": {
"required": [
"actionCode"
],
"type": "object",
"properties": {
"msgs": {
"$ref": "#/components/schemas/APIMessage"
},
"actionCode": {
"pattern": "^[NnUuXx]{0,1}$",
"type": "string"
},
"seqNum": {
"pattern": "^[0-9]{0,7}$",
"type": "string"
},
"startSeqNumber": {
"pattern": "^[0-9]{0,7}$",
"type": "string"
},
"endSeqNumber": {
"pattern": "^[0-9]{0,7}$",
"type": "string"
},
"loc1": {
"$ref": "#/components/schemas/LocationVO"
},
"loc2": {
"$ref": "#/components/schemas/LocationVO"
},
"zone1": {
"$ref": "#/components/schemas/ZoneVO"
},
"zone2": {
"$ref": "#/components/schemas/ZoneVO"
},
"fareClass": {
"pattern": "^$|^(?=.*[a-zA-Z\\d])(?=[^-]*-[^-]*$)[a-zA-Z-][a-zA-Z\\d-]{0,7}$|^(?=.*&)(?=.*[a-zA-Z\\d])[a-zA-Z&][a-zA-Z\\d&]{1,7}$|^(?=.*!)(?=.*[a-zA-Z\\d])[a-zA-Z!][a-zA-Z\\d!]{1,7}$|^[a-zA-Z][a-zA-Z0-9]{0,7}$",
"type": "string"
},
"owrt": {
"pattern": "^[12]{0,1}$",
"type": "string"
},
"rtgNum": {
"pattern": "[0-9]{0,4}$",
"type": "string"
},
"noAppl": {
"pattern": "^[Xx]{0,1}$",
"type": "string"
},
"seqEffDt": {
"pattern": "^$|^(?:(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)0229|[1-9]\\d{3}(?:(?:0[1-9]|1[0-2])(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])(?:29|30)|(?:0[13578]|1[02])31))$",
"type": "string"
},
"discDt": {
"pattern": "^$|^(?:(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)0229|[1-9]\\d{3}(?:(?:0[1-9]|1[0-2])(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])(?:29|30)|(?:0[13578]|1[02])31))$",
"type": "string"
},
"stringOccurrences": {
"maxItems": 200,
"minItems": 0,
"type": "array",
"items": {
"$ref": "#/components/schemas/StringOccurrenceVO"
}
}
}
},
"StringOccurrenceVO": {
"type": "object",
"properties": {
"msgs": {
"$ref": "#/components/schemas/APIMessage"
},
"relInd": {
"pattern": "^[TtAaOo]{0,1}$",
"type": "string"
},
"ioInd": {
"pattern": "^[IiOo]{0,1}$",
"type": "string"
},
"dirInd": {
"pattern": "^[1234]{0,1}$",
"type": "string"
},
"tblNum": {
"pattern": "^[0-9]{0,8}$",
"type": "string"
}
}
},
"UserDefinedZone978FootnotesVO": {
"type": "object",
"properties": {
"tblNum": {
"pattern": "^[0-9]{0,8}$",
"type": "string"
},
"msgs": {
"$ref": "#/components/schemas/APIMessage"
}
}
},
"WorkUnitVO": {
"type": "object",
"properties": {
"msgs": {
"$ref": "#/components/schemas/APIMessage"
},
"organization": {
"pattern": "^$|^[A-Za-z0-9\\*]{2}$",
"type": "string"
},
"workUnitName": {
"pattern": "^[A-Za-z0-9\\.\\-\\/]{0,9}$",
"type": "string"
},
"exclusiveAccess": {
"pattern": "^[YyNn]{0,1}$",
"type": "string"
},
"emailNotification": {
"pattern": "^$|^([\\w+-.%]+@[\\w-.]+\\.[A-Za-z]{2,4},?)+$",
"type": "string"
},
"workUnitId": {
"pattern": "^$|^[A-Za-z0-9\\*]{2,3}-((0[0-9])|([1-2][0-9])|([3][0-1]))(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\d{2}-\\d{1,7}$",
"type": "string"
},
"schdRelDt": {
"pattern": "^$|^(?:(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)0229|[1-9]\\d{3}(?:(?:0[1-9]|1[0-2])(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])(?:29|30)|(?:0[13578]|1[02])31))$",
"type": "string"
},
"schdRelTm": {
"pattern": "^$|(?!0000)(([0-1]?[0-9]|2[0-3])([0-5][0-9])|2400)",
"type": "string"
}
}
},
"ZoneVO": {
"type": "object",
"properties": {
"msgs": {
"$ref": "#/components/schemas/APIMessage"
},
"userDefinedZone978Footnotes": {
"$ref": "#/components/schemas/UserDefinedZone978FootnotesVO"
}
}
},
"CategoryControlResponseVO": {
"type": "object",
"properties": {
"msgs": {
"$ref": "#/components/schemas/APIMessage"
},
"categoryControl": {
"$ref": "#/components/schemas/CategoryControlVO"
},
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
}
}
}