Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion demo/apis.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"SE-11508/SE-11508.raml": "RAML 1.0",
"APIC-463/APIC-463.raml": "RAML 1.0",
"SE-12291/SE-12291.json": "OAS 2.0",
"anyOf/anyOf.yaml": "ASYNC 2.0"
"anyOf/anyOf.yaml": "ASYNC 2.0",
"steveTest-1/stevetest.json": "OAS 2.0"
}
6 changes: 6 additions & 0 deletions demo/steveTest-1/exchange.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"main": "stevetest.json",
"name": "steveTest",
"classifier": "oas",
"tags": []
}
43 changes: 43 additions & 0 deletions demo/steveTest-1/schemas/schema-termsConditionsAccept.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://example.com/example.json",
"type": "object",
"required": [
"logonID",
"site",
"siteRole",
"acceptedDate"
],
"properties": {
"logonID": {
"id": "#/properties/logonID",
"type": "string",
"description": "OneAmerica user's application logonID.",
"example": "indybrad"
},
"site": {
"id": "#/properties/site",
"type": "string",
"description": "OneAmerica web application identifier within which user is accepting terms.",
"example": "ACCTSERV"
},
"siteRole": {
"id": "#/properties/siteRole",
"type": "string",
"description": "OneAmerica user's role within the web application.",
"example": "PARTCPNT"
},
"impersonationID": {
"id": "#/properties/impersonationID",
"type": "string",
"description": "OneAmerica user account that is accepting on behalf of the actual OneAmerica user.",
"example": "xyz123"
},
"acceptedDate": {
"id": "#/properties/acceptedDate",
"type": "string",
"description": "Datetime of acceptance of terms by the OneAmerica user.",
"example": "2018-01-01T12:00:00.000"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://example.com/example.json",
"type": "object",
"default": {},
"additionalProperties": true,
"properties": {
"logonID": {
"id": "#/properties/logonID",
"type": "string",
"description": "OneAmerica user's application logonID."
},
"accepted": {
"id": "#/properties/accepted",
"type": "boolean",
"description": "True/False indicator on whether legal terms were accepted."
},
"acceptedDate": {
"id": "#/properties/acceptedDate",
"type": "string",
"description": "Date of acceptance of legal terms."
}
}
}
167 changes: 167 additions & 0 deletions demo/steveTest-1/stevetest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"swagger": "2.0",
"info": {
"title": "Legal System Service v1",
"description": "This is the suite of Participant Legal services.",
"version": "1.0.0",
"termsOfService": "http://www.oneamerica.com",
"contact": {
"email": "jedimaster@oneamerica.com"
},
"license": {
"name": "OneAmerica 1.0"
}
},
"host": "esb.oneamerica.com:61006",
"basePath": "/api",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
{
"name": "test",
"description": "test"
}
],
"parameters": {
"trait:content-type-required:content-type": {
"required": true,
"type": "string",
"in": "header",
"name": "content-type"
}
},
"paths": {
"/legal/termsConditionsAcceptReset": {
"delete": {
"description": "Delete participants existing terms and conditions",
"responses": {
"200": {
"description": "This status code will be returned when request passes"
},
"400": {
"$ref": "traits/response-errors.json#/responses/400"
},
"404": {
"$ref": "traits/response-errors.json#/responses/404"
},
"405": {
"$ref": "traits/response-errors.json#/responses/405"
},
"406": {
"$ref": "traits/response-errors.json#/responses/406"
},
"415": {
"$ref": "traits/response-errors.json#/responses/406"
},
"500": {
"$ref": "traits/response-errors.json#/responses/500"
},
"501": {
"$ref": "traits/response-errors.json#/responses/501"
}
}
}
},
"/legal/termsConditionsAccept": {
"get": {
"description": "Retrieves a user's status on terms and conditions acceptance.",
"responses": {
"200": {
"description": "This status code will be returned when request passes.",
"schema": {
"$ref": "schemas_response/schema-termsConditionsAccept-Get.json"
},
"examples": {
"application/json": {
"logonID": "indybrad",
"accepted" : true,
"acceptedDate" : "2018-01-01T12:00:00.000"
}
}
},
"400": {
"$ref": "traits/response-errors.json#/responses/400"
},
"404": {
"$ref": "traits/response-errors.json#/responses/404"
},
"405": {
"$ref": "traits/response-errors.json#/responses/405"
},
"406": {
"$ref": "traits/response-errors.json#/responses/406"
},
"415": {
"$ref": "traits/response-errors.json#/responses/406"
},
"500": {
"$ref": "traits/response-errors.json#/responses/500"
},
"501": {
"$ref": "traits/response-errors.json#/responses/501"
}
},
"parameters": [
{
"required": true,
"type": "string",
"in": "header",
"name": "webLogonID"
},
{
"$ref": "#/parameters/trait:content-type-required:content-type"
}
]
},
"post": {
"description": "Store participant's terms and conditions acceptance.",
"responses": {
"200": {
"description": "This status code will be returned when request passes."
},
"400": {
"$ref": "traits/response-errors.json#/responses/400"
},
"404": {
"$ref": "traits/response-errors.json#/responses/404"
},
"405": {
"$ref": "traits/response-errors.json#/responses/405"
},
"406": {
"$ref": "traits/response-errors.json#/responses/406"
},
"415": {
"$ref": "traits/response-errors.json#/responses/406"
},
"500": {
"$ref": "traits/response-errors.json#/responses/500"
},
"501": {
"$ref": "traits/response-errors.json#/responses/501"
}
},
"parameters": [
{
"$ref": "#/parameters/trait:content-type-required:content-type"
},
{
"in": "body",
"name": "body",
"schema": {
"$ref": "schemas/schema-termsConditionsAccept.json"
},
"required": true
}
]
}
}
}
}
123 changes: 123 additions & 0 deletions demo/steveTest-1/traits/response-errors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"responses": {
"400": {
"description": "Status code and error message will be returned if validation fails.",
"schema": {
"$ref": "schema-response-errors.json#/properties/errorInfo"
},
"examples": {
"application/json": {
"errorInfo": [
{
"code": "400",
"message": "Bad request",
"detail": "Invalid request"
}
]
}
}
},
"404": {
"description": "Resource not found for requested URI.",
"schema": {
"$ref": "schema-response-errors.json#/properties/errorInfo"
},
"examples": {
"application/json": {
"errorInfo": [
{
"code": "404",
"message": "Resource not found",
"detail": "Resource not found for requested URI"
}
]
}
}
},
"405": {
"description": "Method not allowd for requested resource.",
"schema": {
"$ref": "schema-response-errors.json#/properties/errorInfo"
},
"examples": {
"application/json": {
"errorInfo": [
{
"code": "405",
"message": "Method not allowed",
"detail": "Method not allowed for requested resource"
}
]
}
}
},
"406": {
"description": "Request headers are not acceptable.",
"schema": {
"$ref": "schema-response-errors.json#/properties/errorInfo"
},
"examples": {
"application/json": {
"errorInfo": [
{
"code": "406",
"message": "Not acceptable",
"detail": "Request accept headers are not acceptable"
}
]
}
}
},
"415": {
"description": "Request format is not supported by the requested resource.",
"schema": {
"$ref": "schema-response-errors.json#/properties/errorInfo"
},
"examples": {
"application/json": {
"errorInfo": [
{
"code": "415",
"message": "Unsupported media type",
"detail": "Request format is not supported by the requested resource"
}
]
}
}
},
"500": {
"description": "Status code and error message will be returned when the endpoint encounters an unexpected technical error",
"schema": {
"$ref": "schema-response-errors.json#/properties/errorInfo"
},
"examples": {
"application/json": {
"errorInfo": [
{
"code": "500",
"message": "Unexpected server error",
"detail": "Service encountered an unexpected error while processing the request"
}
]
}
}
},
"501": {
"description": "Service method is not implemented.",
"schema": {
"$ref": "schema-response-errors.json#/properties/errorInfo"
},
"examples": {
"application/json": {
"errorInfo": [
{
"code": "501",
"message": "Not Implemented",
"detail": "Service method is not implemented"
}
]
}
}
}
}
}
Loading