diff --git a/AssetWorks_Swagger.json b/AssetWorks_Swagger.json new file mode 100644 index 0000000000000000000000000000000000000000..8096b7bde103590da41a30cb991a5a736e133cba --- /dev/null +++ b/AssetWorks_Swagger.json @@ -0,0 +1,168 @@ +{ + "swagger" : "2.0", + "info" : { + "description" : null, + "version" : "1.0.0", + "title" : null, + "termsOfService" : null, + "contact" : null, + "license" : null + }, + "host" : "api.wisc.edu", + "basePath" : "/finance", + "schemes" : [ "https" ], + "paths" : { + "/validate-funding" : { + "post" : { + "tags" : [ "validate-funding" ], + "summary" : null, + "description" : null, + "operationId" : "validate-funding", + "produces" : [ "application/vnd.api+json" ], + "consumes" : [ "application/vnd.api+json" ], + "parameters" : [ { + "name" : "body", + "in" : "body", + "description" : null, + "required" : false, + "schema" : { + "$ref" : "#/definitions/validate-funding_Request##body" + } + } ], + "responses" : { + "200" : { + "description" : "successful operation", + "schema" : { + "$ref" : "#/definitions/validate-funding" + } + } + } + } + } + }, + "definitions" : { + "validate-funding##data##attributes##lines" : { + "properties" : { + "errors" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "valid" : { + "type" : "boolean" + } + } + }, + "validate-funding##data##attributes" : { + "properties" : { + "journalErrors" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "lines" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/validate-funding##data##attributes##lines" + } + }, + "valid" : { + "type" : "boolean" + } + } + }, + "validate-funding##data" : { + "properties" : { + "attributes" : { + "$ref" : "#/definitions/validate-funding##data##attributes" + }, + "id" : { + "type" : "string" + }, + "type" : { + "type" : "string" + } + } + }, + "validate-funding" : { + "properties" : { + "data" : { + "$ref" : "#/definitions/validate-funding##data" + } + } + }, + "validate-funding_Request##body##data##attributes##lines" : { + "properties" : { + "costCenter" : { + "type" : "string" + }, + "fund" : { + "type" : "string" + }, + "functionId" : { + "type" : "string" + }, + "ledgerAccount" : { + "type" : "string" + }, + "projectType" : { + "type" : "string" + }, + "project" : { + "type" : "string" + }, + "program" : { + "type" : "string" + }, + "spendCategory" : { + "type" : "string" + } + } + }, + "validate-funding_Request##body##data##attributes" : { + "properties" : { + "company" : { + "type" : "string" + }, + "accountingDate" : { + "type" : "string" + }, + "ledger" : { + "type" : "string" + }, + "lines" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/validate-funding_Request##body##data##attributes##lines" + } + } + } + }, + "validate-funding_Request##body##data" : { + "properties" : { + "type" : { + "type" : "string" + }, + "attributes" : { + "$ref" : "#/definitions/validate-funding_Request##body##data##attributes" + } + } + }, + "validate-funding_Request##body" : { + "properties" : { + "data" : { + "$ref" : "#/definitions/validate-funding_Request##body##data" + } + } + }, + "validate-funding_Request" : { + "properties" : { + "body" : { + "$ref" : "#/definitions/validate-funding_Request##body" + } + } + } + } +}