Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Pre – conditions:

  1.                                                                                                                                                                                                                

Step

 

Action

Expected system response

Comment

1

Create geographicLevels entity:

In URL: http://localhost:8080/api/geographicLevels

Method: Post:

Body

{

"code":"GL2",

"levelNumber":"12"

}

geographicLevels id: "http://localhost:8080/api/geographicLevels/8e38e02f-29a8-44e9-926a-cfc3eb4d0ca3"

                                                 

2

Create geographicZones entity. 

In URL:http://localhost:8080/api/geographicZones

Method: Post:

{

"code":"GeoZon2",

"level":"http://localhost:8080/api/geographicLevels/8e38e02f-29a8-44e9-926a-cfc3eb4d0ca3"

}

 geographicZones id:"http://localhost:8080/api/geographicZones/be60bba4-c3d0-4d76-9e4b-12f8f50d934b"

 

3

Create facilityTypes entity.

In URL: http://localhost:8080/api/facilityTypes

Method: Post:

{

"code":"facilityT2"

}

facilityTypes id:"http://localhost:8080/api/facilityTypes/99b9e25f-c147-450c-be88-0d1d3a61109e"

 

4

Create facilities entity.

In URL: http://localhost:8080/api/facilities

Method: Post:

{

"code":"facilities2",

"geographicZone": "http://localhost:8080/api/geographicZones/be60bba4-c3d0-4d76-9e4b-12f8f50d934b",

"type":"http://localhost:8080/api/facilityTypes/99b9e25f-c147-450c-be88-0d1d3a61109e",

"active":true,

"enabled":false

}

 facilities id: http://localhost:8080/api/facilities/8ff6f995-0c09-46e3-886c-4313c90334f2"

 

5

Create supervisoryNodes entity.

In URL: http://localhost:8080/api/supervisoryNodes

Method: Post:

{

"code":"supervisoryN",

"name":"Nodes",

"supervisorCount":"2",

"facility": "http://localhost:8080/api/facilities/8ff6f995-0c09-46e3-886c-4313c90334f2"

}

supervisoryNodes id:"http://localhost:8080/api/supervisoryNodes/abeeb7a4-b3bd-4c58-b41d-102e2dacec1c"

 

6

  

 

7

  

 

8
Create another geographicLevels entity:

Method: Post:

Body:

{

"code":"GL1",

"levelNumber":"11"

}

geographicLevels

id:"http://localhost:8080/api/geographicLevels/73f0a091-6004-4bd8-bd32-43f4c143631a"

 

7

Create another geographicZones entity:

Method: Post:

Body:

{

"code":"GeoZon",

"level":"http://localhost:8080/api/geographicLevels/73f0a091-6004-4bd8-bd32-43f4c143631a"

}

geographicZones  id:"http://localhost:8080/api/geographicZones/306c2842-3591-47c6-8276-af3efd8d2657"

 

8

   

                                                

 

 

 

 

Post – conditions: