diff --git a/ASP-IICS-Team/GetCostCenter/getcostcenter.json b/ASP-IICS-Team/GetCostCenter/getcostcenter.json index 2310dba043b6f93f45edc24f2874ce2936eb39f2..b095db1ecbfb77b4bbb28d666c1f84f118af3e28 100644 --- a/ASP-IICS-Team/GetCostCenter/getcostcenter.json +++ b/ASP-IICS-Team/GetCostCenter/getcostcenter.json @@ -14,13 +14,13 @@ "paths" : { "/costCenters" : { "get" : { - "tags" : [ "get_cost_center" ], + "tags" : [ "Get_Costcenters" ], "summary" : null, "description" : null, - "operationId" : "get_cost_center", + "operationId" : "Get_Costcenters", "produces" : [ "application/json" ], "consumes" : [ "application/json" ], - "parameters" : [ { + "parameters" : [ { "name" : "page[number]", "in" : "query", "description" : null, @@ -39,7 +39,7 @@ "200" : { "description" : "successful operation", "schema" : { - "$ref" : "#/definitions/get_cost_center" + "$ref" : "#/definitions/Get_Costcenters" } } } @@ -47,82 +47,104 @@ } }, "definitions" : { - "get_cost_center##data##attributes##leadershipRoleAssignees" : { + "Get_Costcenters##data##attributes" : { "properties" : { - "id" : { - "type" : "string" - } - } - }, - "get_cost_center##data##attributes" : { - "properties" : { - "company" : { - "type" : "string" - }, - "leadershipRoleAssignees" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/get_cost_center##data##attributes##leadershipRoleAssignees" - } + "active" : { + "type" : "boolean" }, - "managerId" : { + "company" : { "type" : "string" }, "name" : { "type" : "string" - }, - "parentHierarchyId" : { - "type" : "string" } } }, - "get_cost_center##data##links" : { + "Get_Costcenters##data##links" : { "properties" : { "self" : { "type" : "string" } } }, - "get_cost_center##data##meta" : { + "Get_Costcenters##data##meta" : { "properties" : { "dttmLoaded" : { "type" : "string" } } }, - "get_cost_center##data" : { + "Get_Costcenters##data" : { "properties" : { "attributes" : { - "$ref" : "#/definitions/get_cost_center##data##attributes" + "$ref" : "#/definitions/Get_Costcenters##data##attributes" }, "id" : { "type" : "string" }, "links" : { - "$ref" : "#/definitions/get_cost_center##data##links" + "$ref" : "#/definitions/Get_Costcenters##data##links" }, "meta" : { - "$ref" : "#/definitions/get_cost_center##data##meta" + "$ref" : "#/definitions/Get_Costcenters##data##meta" }, "type" : { "type" : "string" } } }, - "get_cost_center##links" : { + "Get_Costcenters##links" : { "properties" : { + "first" : { + "type" : "string" + }, + "last" : { + "type" : "string" + }, + "next" : { + "type" : "string" + }, + "prev" : { + "type" : "string" + }, "self" : { "type" : "string" } } }, - "get_cost_center" : { + "Get_Costcenters##meta" : { + "properties" : { + "page[number]" : { + "type" : "number", + "format" : "int32" + }, + "page[size]" : { + "type" : "number", + "format" : "int32" + }, + "totalCount" : { + "type" : "number", + "format" : "int32" + }, + "totalPages" : { + "type" : "number", + "format" : "int32" + } + } + }, + "Get_Costcenters" : { "properties" : { "data" : { - "$ref" : "#/definitions/get_cost_center##data" + "type" : "array", + "items" : { + "$ref" : "#/definitions/Get_Costcenters##data" + } }, "links" : { - "$ref" : "#/definitions/get_cost_center##links" + "$ref" : "#/definitions/Get_Costcenters##links" + }, + "meta" : { + "$ref" : "#/definitions/Get_Costcenters##meta" } } }