1 | Create Program only with code: URL: http://localhost:8080/api/programs Method: POST Body:{ "code":"code", } | { "code": "Code", "name": null, "description": null, "active": null, "periodsSkippable": false, "showNonFullSupplyTab": null, "_links": { "self": { "href": "http://localhost:8080/api/programs/b441d350-5f2a-4fcc-882c-785d6a34e4ad" }, "program": { "href": "http://localhost:8080/api/programs/b441d350-5f2a-4fcc-882c-785d6a34e4ad" } } } | |
2 | Create RequisitionTemplate: URL: http://localhost:8080/api/requisitionTemplates Method: POST Body: { "program":"http://localhost:8080/api/programs/b441d350-5f2a-4fcc-882c-785d6a34e4ad", "columnsMap":{ "columnKey":{ "name":"name1" } } } | { "columnsMap": { "columnKey": { "name": "name1", "label": null, "displayOrder": 0, "isDisplayed": null, "isDisplayRequired": null, "canChangeOrder": null, "canBeChangedByUser": null, "source": null } }, "_links": { "self": { "href": "http://localhost:8080/api/requisitionTemplates/93b9a4f5-2c59-4fa0-a4ca-7c1f36021445" }, "requisitionTemplate": { "href": "http://localhost:8080/api/requisitionTemplates/93b9a4f5-2c59-4fa0-a4ca-7c1f36021445" }, "program": { "href": "http://localhost:8080/api/requisitionTemplates/93b9a4f5-2c59-4fa0-a4ca-7c1f36021445/program" } } } | |
3 | Edit existing Requisition Template URL: http://localhost:8080/api/requisitionTemplates Method: POST Body: { "id":"93b9a4f5-2c59-4fa0-a4ca-7c1f36021445", "program":"http://localhost:8080/api/programs/b441d350-5f2a-4fcc-882c-785d6a34e4ad", "columnsMap":{ "columnKey":{ "name":"name123" } } } | { "columnsMap": { "columnKey": { "name": "name123", "label": null, "displayOrder": 0, "isDisplayed": null, "isDisplayRequired": null, "canChangeOrder": null, "canBeChangedByUser": null, "source": null } }, "_links": { "self": { "href": "http://localhost:8080/api/requisitionTemplates/93b9a4f5-2c59-4fa0-a4ca-7c1f36021445" }, "requisitionTemplate": { "href": "http://localhost:8080/api/requisitionTemplates/93b9a4f5-2c59-4fa0-a4ca-7c1f36021445" }, "program": { "href": "http://localhost:8080/api/requisitionTemplates/93b9a4f5-2c59-4fa0-a4ca-7c1f36021445/program" } } } | |