From 12f88ad39e5508b63dae57ad85b36866c28c459a Mon Sep 17 00:00:00 2001 From: Harsha Gummadavelli <hvardhan@wisc.edu> Date: Sun, 23 Feb 2025 14:25:51 -0600 Subject: [PATCH] Update getcostcenter.json --- .../GetCostCenter/getcostcenter.json | 57 ++++++++++++------- 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/ASP-IICS-Team/GetCostCenter/getcostcenter.json b/ASP-IICS-Team/GetCostCenter/getcostcenter.json index d130464..23f6bbb 100644 --- a/ASP-IICS-Team/GetCostCenter/getcostcenter.json +++ b/ASP-IICS-Team/GetCostCenter/getcostcenter.json @@ -14,18 +14,32 @@ "paths" : { "/costCenters" : { "get" : { - "tags" : [ "getcostcenter" ], + "tags" : [ "Get_Costcenters" ], "summary" : null, "description" : null, - "operationId" : "getcostcenter", + "operationId" : "Get_Costcenters", "produces" : [ "application/json" ], "consumes" : [ "application/json" ], - "parameters" : [ ], + "parameters" : [ { + "name" : "page[number]", + "in" : "query", + "description" : null, + "required" : false, + "type" : "number", + "format" : "int32" + }, { + "name" : "page[size]", + "in" : "query", + "description" : null, + "required" : false, + "type" : "number", + "format" : "int32" + } ], "responses" : { "200" : { "description" : "successful operation", "schema" : { - "$ref" : "#/definitions/getcostcenter" + "$ref" : "#/definitions/Get_Costcenters" } } } @@ -33,7 +47,7 @@ } }, "definitions" : { - "getcostcenter##data##attributes" : { + "Get_Costcenters##data##attributes" : { "properties" : { "active" : { "type" : "boolean" @@ -43,43 +57,46 @@ }, "name" : { "type" : "string" + } + "parentHierarchyId" : { + "type" : "string" } } }, - "getcostcenter##data##links" : { + "Get_Costcenters##data##links" : { "properties" : { "self" : { "type" : "string" } } }, - "getcostcenter##data##meta" : { + "Get_Costcenters##data##meta" : { "properties" : { - "dttm_loaded" : { + "dttmLoaded" : { "type" : "string" } } }, - "getcostcenter##data" : { + "Get_Costcenters##data" : { "properties" : { "attributes" : { - "$ref" : "#/definitions/getcostcenter##data##attributes" + "$ref" : "#/definitions/Get_Costcenters##data##attributes" }, "id" : { "type" : "string" }, "links" : { - "$ref" : "#/definitions/getcostcenter##data##links" + "$ref" : "#/definitions/Get_Costcenters##data##links" }, "meta" : { - "$ref" : "#/definitions/getcostcenter##data##meta" + "$ref" : "#/definitions/Get_Costcenters##data##meta" }, "type" : { "type" : "string" } } }, - "getcostcenter##links" : { + "Get_Costcenters##links" : { "properties" : { "first" : { "type" : "string" @@ -98,13 +115,13 @@ } } }, - "getcostcenter##meta" : { + "Get_Costcenters##meta" : { "properties" : { - "pageNumber" : { + "page[number]" : { "type" : "number", "format" : "int32" }, - "pageSize" : { + "page[size]" : { "type" : "number", "format" : "int32" }, @@ -118,19 +135,19 @@ } } }, - "getcostcenter" : { + "Get_Costcenters" : { "properties" : { "data" : { "type" : "array", "items" : { - "$ref" : "#/definitions/getcostcenter##data" + "$ref" : "#/definitions/Get_Costcenters##data" } }, "links" : { - "$ref" : "#/definitions/getcostcenter##links" + "$ref" : "#/definitions/Get_Costcenters##links" }, "meta" : { - "$ref" : "#/definitions/getcostcenter##meta" + "$ref" : "#/definitions/Get_Costcenters##meta" } } } -- GitLab