Create Program by Postman.
URL: http://localhost:8080/api/programs
Method: POST
Request:
{
"code":"programCodee"
}
Create geographic Levels by Postman.
URL: http://localhost:8080/api/geographicLevels
Method: POST
Request:
{
"code":"geoLevelCode",
"levelNumber":200
}
Create geographic Zones by Postman.
URL: http://localhost:8080/api/geographicZones
Method: POST
Request:
{
"code":"geoZonesLeve;",
"level":"http://localhost:8080/api/geographicLevels/6583a4a1-74e8-46ef-a032-305efb1f1758"
}
Create facility Types by Postman.
URL: http://localhost:8080/api/facilityTypes
Method: POST
Request:
{
"code":"facilityTypeCode"
}
Create facilities by Postman.
URL: http://localhost:8080/api/facilities
Method: POST
Request:
{
"code": "facilityCode",
"geographicZone":"http://localhost:8080/api/geographicZones/70b50073-c4d1-4f49-95c9-aa69907952e2",
"type":"http://localhost:8080/api/facilityTypes/3a04f48c-9967-4de1-b57c-2efa9b523004",
"active":false,
"enabled":false
}
Create schedules by Postman.
URL: http://localhost:8080/api/usersschedules
Method: POST
Request:
Request:
{
"code":"schedulesCode",
"name":"schedulesName"
}
Response:
{
"code": "schedulesCode",
"description": null,
"modifiedDate": "2016-07-15T09:49:55.731",
"name": "schedulesName",
"_links": {
"self": {
"href": "http://localhost:8080/api/schedules/88f88d31-aecf-42a2-85cd-33a6b96df05d"
},
"schedule": {
"href": "http://localhost:8080/api/schedules/88f88d31-aecf-42a2-85cd-33a6b96df05d"
}
}
Create periods by Postman.
URL: http://localhost:8080/api/users
Method: POST
Request:
Request:
{
"processingSchedule":
{
"id": "88f88d31-aecf-42a2-85cd-33a6b96df05d",
"code": "schedulesCode",
"description": null,
"modifiedDate": "2016-07-15T09:49:55.731",
"name": "schedulesName"
},
"name":"periodName",
"description":"periodDescription",
"startDate":"2016-07-11",
"endDate":"2016-07-12"
}
Create requsitions by Postman.
URL: http://localhost:8080/api/users
Method: POST
Request:
Request:
{
"facility":"http://localhost:8080/api/facilities/f4a567a3-ec0f-4f4e-b13f-75fb1e9a0154",
"program":"http://localhost:8080/api/programs/4b81fa87-5df9-4001-86c5-c3d5ccb9897e",
"processingPeriod":"http://localhost:8080/api/periods/7fc68a7e-0b6e-41fc-b759-120c46098b66",
"status":"SUBMITTED"
}
Create products by Postman.
URL: http://localhost:8080/api/users
Method: POST
Request:
Request:
{
"code":"productCode",
"primaryName":"productPrimaryName",
"dispensingUnit":"something",
"dosesPerDispensingUnit":12345,
"packSize":1234,
"packRoundingThreshold":123,
"roundToZero":false,
"active":false,
"fullSupply":false,
"tracer":false
}
Create requsitionLines by Postman.
URL: http://localhost:8080/api/users
Method: POST
Request:
Request:
{
"product":"http://localhost:8080/api/products/8b47ab9b-44cf-46a6-85cd-67805d5e888a"
}
Response:
{
"quantityRequested": null,
"_links": {
"self": {
"href": "http://localhost:8080/api/requisitionLines/24ae0f56-0a83-4743-bd4f-647e5d3db6b6"
},
"requisitionLine": {
"href": "http://localhost:8080/api/requisitionLines/24ae0f56-0a83-4743-bd4f-647e5d3db6b6"
},
"product": {
"href": "http://localhost:8080/api/requisitionLines/24ae0f56-0a83-4743-bd4f-647e5d3db6b6/product"
}
}
}