- Create Program
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/77632169-52ce-4af5-8536-903e9ec4ebd3"
}
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":"facilityCodee",
"geographicZone":"http://localhost:8080/api/geographicZones/120f87cd-cd0f-4359-9c10-62a2a49b91cc",
"type":"http://localhost:8080/api/facilityTypes/08554454-da09-44bc-ad03-44f5886a3637",
"active":false,
"enabled":false
}
Create user by Postman.
URL: http://localhost:8080/api/users
Method: POST
Request:
{
"username":"usernamee",
"password":"passsword",
"firstName":"userFirstName",
"lastName":userLastName"
}
Create orders by Postman.
URL: http://localhost:8080/api/orders
Method: POST
Request:
{
"createdBy":"http://localhost:8080/api/users/1a750a52-f9bc-4f62-8250-733485fd1236",
"program":"http://localhost:8080/api/programs/a1ca984c-03c1-4300-818c-23b1e0cb3116",
"requestingFacility":"http://localhost:8080/api/facilities/74338235-6d80-4f49-a6a6-457b0ac3b27d",
"receivingFacility":"http://localhost:8080/api/facilities/74338235-6d80-4f49-a6a6-457b0ac3b27d",
"supplyingFacility":"http://localhost:8080/api/facilities/74338235-6d80-4f49-a6a6-457b0ac3b27d",
"orderCode":"order_code",
"status":"ORDERED",
"quotedCost":"51"
}