diff --git a/docs/api.md b/docs/api.md index 14511b9..d68c1f5 100644 --- a/docs/api.md +++ b/docs/api.md @@ -2193,6 +2193,7 @@ HTTP/1.1 200 Success | Name | Type | Description | | :----------: | :----: | :--------------------------------------------------------------------------------------------------------------: | | \_id | String | Unique universal identifier of this event function. | +| type | String | Human readable type of a event function. | | name | Object | Human-translatable-readable name for the event function. | | abbreviation | Object | Human-translatable-readable abbreviation for the name of the event function. | | description | Object | Human-translatable-readable description for the event function. | @@ -2210,6 +2211,7 @@ To create a new event function, send a `POST` request to `https://api.ewea.io/v1 | Name | Type | Description | Required | | :---------: | :----: | :--------------------------------------------------------------------------------: | :------: | | code | String | Unique human-readable given code of this event function. | false | +| type | String | Human readable type of a event function. | true | | name | Object | Human-translatable-readable name for the event function. | true | | description | Object | Human-translatable-readable description for the event function. | false | | color | String | A color code(in hexadecimal format) used to differentiate event function visually. | false | @@ -2223,6 +2225,7 @@ curl --request POST \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' \ --data '{ + "type": "Flood" "code": "DBM", "name": { "en": "Dead Bodies Management" }, "color": "#F9C5A7" @@ -2236,6 +2239,7 @@ The response will be a `JSON object` with the standard event group attributes: | Name | Type | Description | | :----------: | :----: | :--------------------------------------------------------------------------------------------------------------: | | \_id | String | Unique universal identifier of this event function. | +| type | String | Human readable type of a event function. | | name | Object | Human-translatable-readable name for the event function. | | abbreviation | Object | Human-translatable-readable abbreviation for the name of the event function. | | description | Object | Human-translatable-readable description for the event function. | @@ -2250,6 +2254,7 @@ The response will be a `JSON object` with the standard event group attributes: HTTP/1.1 201 Success { "_id": "5ddbbc871283e3131b2d41f4", + "type": "Flood", "name": { "en": "Dead Bodies Management" }, "abbreviation": { "en": "DBM" }, "description": { "en": "" }, @@ -2280,6 +2285,7 @@ The response will be a `JSON object` with the standard event function attributes | Name | Type | Description | | :----------: | :----: | :--------------------------------------------------------------------------------------------------------------: | | \_id | String | Unique universal identifier of this event function. | +| type | String | Human readable type of a event function. | | name | Object | Human-translatable-readable name for the event function. | | abbreviation | Object | Human-translatable-readable abbreviation for the name of the event function. | | description | Object | Human-translatable-readable description for the event function. | @@ -2294,6 +2300,7 @@ The response will be a `JSON object` with the standard event function attributes HTTP/1.1 200 Success { "_id": "5ddbbc871283e3131b2d41f4", + "type": "Flood", "code": "DBM", "name": { "en": "Dead Bodies Management" }, "description": { "en": "" }, @@ -2312,6 +2319,7 @@ To update existing event function, send a `PATCH` request to `https://api.ewea.i | Name | Type | Description | Required | | :---------: | :----: | :-------------------------------------------------------------: | :------: | +| type | String | Human readable type of a event function. | true | | name | Object | Human-translatable-readable name for the event function. | true | | description | Object | Human-translatable-readable description for the event function. | false | @@ -2324,6 +2332,7 @@ curl --request PATCH \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ' \ --data '{ + "type": "Flood", "name": { "en": "Dead Bodies Management" }, "description": { "en": "" }, }' @@ -2336,6 +2345,7 @@ The response will be a `JSON object` with the standard event function attributes | Name | Type | Description | | :----------: | :----: | :--------------------------------------------------------------------------------------------------------------: | | \_id | String | Unique universal identifier of this event function. | +| type | String | Human readable type of a event function. | | name | Object | Human-translatable-readable name for the event function. | | abbreviation | Object | Human-translatable-readable abbreviation for the name of the event function. | | description | Object | Human-translatable-readable description for the event function. | @@ -2351,6 +2361,7 @@ HTTP/1.1 200 Success { "_id": "5ddbbc871283e3131b2d41f4", "code": "DBM", + "type": "Flood", "name": { "en": "Dead Bodies Management" }, "abbreviation": { "en": "DBM" }, "description": { "en": "" }, @@ -2380,6 +2391,7 @@ The response will be a `JSON object` with the standard event function attributes | Name | Type | Description | | :----------: | :----: | :--------------------------------------------------------------------------------------------------------------: | | \_id | String | Unique universal identifier of this event function. | +| type | String | Human readable type of a event function. | | name | Object | Human-translatable-readable name for the event function. | | abbreviation | Object | Human-translatable-readable abbreviation for the name of the event function. | | description | Object | Human-translatable-readable description for the event function. | @@ -2395,6 +2407,7 @@ HTTP/1.1 200 Success { "_id": "5ddbbc871283e3131b2d41f4", "code": "DBM", + "type": "Flood", "name": { "en": "Dead Bodies Management" }, "abbreviation": { "en": "DBM" }, "description": { "en": "" }, @@ -2404,7 +2417,7 @@ HTTP/1.1 200 Success } ``` -### List All EventFuntion +### List All EventFunction To list all event functions, send a `GET` request to `https://api.ewea.io/v1/predefines/`. @@ -2425,6 +2438,7 @@ The response will be a `JSON object` with a `data key`. The values in the `data | :----------: | :----: | :--------------------------------------------------------------------------------------------------------------: | | \_id | String | Unique universal identifier of this event function. | | name | Object | Human-translatable-readable name for the event function. | +| type | String | Human readable type of a event function. | | abbreviation | Object | Human-translatable-readable abbreviation for the name of the event function. | | description | Object | Human-translatable-readable description for the event function. | | code | String | Unique human-readable given code of this event function. | @@ -2439,6 +2453,7 @@ HTTP/1.1 200 Success { "data": [{ "_id": "5ddbbc871283e3131b2d41f4", + "type": "Flood", "name": { "en": "Dead Bodies Management" }, "abbreviation": { "en": "DBM" }, "description": { "en": "" }, diff --git a/docs/domain.png b/docs/domain.png index 3f49a46..245302a 100644 Binary files a/docs/domain.png and b/docs/domain.png differ diff --git a/docs/ewea.v1.postman.json b/docs/ewea.v1.postman.json new file mode 100644 index 0000000..7935729 --- /dev/null +++ b/docs/ewea.v1.postman.json @@ -0,0 +1,1829 @@ +{ + "info": { + "_postman_id": "c72fda44-e242-4187-af65-f08543fd63d7", + "name": "EWEA V1", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "Authentication", + "item": [ + { + "name": "Signin", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"username\": \"richardaggrey7@gmail.com\",\n \"password\": \"123456789\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/signin", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "signin" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Party", + "item": [ + { + "name": "Create Party", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"name\": \"John Doe\",\n \"email\": \"john.doe@example.com\",\n \"mobile\": \"255789321212\"\n}" + }, + "url": { + "raw": "localhost:5000/v1/parties", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "parties" + ] + }, + "description": "Create a single party" + }, + "response": [] + }, + { + "name": "Retrieve Party", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:5000/v1/parties/5de67e5b36c38aa77e78ba09", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "parties", + "5de67e5b36c38aa77e78ba09" + ] + } + }, + "response": [] + }, + { + "name": "Update Party", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{ \"name\" : \"John Dae\" }" + }, + "url": { + "raw": "localhost:5000/v1/parties/5de67e5b36c38aa77e78ba09", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "parties", + "5de67e5b36c38aa77e78ba09" + ] + } + }, + "response": [] + }, + { + "name": "Update Party", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{ \"name\" : \"John Dae\" }" + }, + "url": { + "raw": "localhost:5000/v1/parties/5de67e5b36c38aa77e78ba09", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "parties", + "5de67e5b36c38aa77e78ba09" + ] + } + }, + "response": [] + }, + { + "name": "Delete Party", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "localhost:5000/v1/parties/5de67e5b36c38aa77e78ba09", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "parties", + "5de67e5b36c38aa77e78ba09" + ] + } + }, + "response": [] + }, + { + "name": "List All Parties", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/parties", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "parties" + ] + }, + "description": "An Entity registered to access the system" + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "PartyRole", + "item": [ + { + "name": "Create PartyRole", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"ICT officer\"\n },\n \"name\": {\n \"en\": \"ICT officer\"\n },\n \"color\": \"#86C7E8\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/partyroles", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partyroles" + ] + } + }, + "response": [] + }, + { + "name": "Retrieve PartyRole", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:5000/v1/predefines/partyroles/5de6795836c38aa77e78b9fa", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partyroles", + "5de6795836c38aa77e78b9fa" + ] + } + }, + "response": [] + }, + { + "name": "Update PartyRole", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Technical Support\"\n },\n \"name\": {\n \"en\": \"ICT officer\"\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/partyroles/5de6795836c38aa77e78b9fa", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partyroles", + "5de6795836c38aa77e78b9fa" + ] + } + }, + "response": [] + }, + { + "name": "Update PartyRole", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Technical Support\"\n },\n \"name\": {\n \"en\": \"ICT officer\"\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/partyroles/5de6795836c38aa77e78b9fa", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partyroles", + "5de6795836c38aa77e78b9fa" + ] + } + }, + "response": [] + }, + { + "name": "Delete PartyRole", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "localhost:5000/v1/predefines/partyroles/5de6795836c38aa77e78b9fa", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partyroles", + "5de6795836c38aa77e78b9fa" + ] + } + }, + "response": [] + }, + { + "name": "List All PartyRole", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:5000/v1/predefines/partyroles", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partyroles" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "PartyGroup", + "item": [ + { + "name": "Create PartyGroup", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"International Organisations\"\n },\n \"name\": {\n \"en\": \"International Organisations\"\n },\n \"color\": \"#86C7E8\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/partygroups", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partygroups" + ] + } + }, + "response": [] + }, + { + "name": "Retrieve PartyGroup", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:5000/v1/predefines/partygroups/5de76fac36c38aa77e78ba14", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partygroups", + "5de76fac36c38aa77e78ba14" + ] + } + }, + "response": [] + }, + { + "name": "Update PartyGroup", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Group of Agencies belonging to the government\"\n },\n \"name\": {\n \"en\": \"International Organisations\"\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/partygroups/5de76fac36c38aa77e78ba14", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partygroups", + "5de76fac36c38aa77e78ba14" + ] + } + }, + "response": [] + }, + { + "name": "Update PartyGroup Copy", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Group of Agencies belonging to the government\"\n },\n \"name\": {\n \"en\": \"International Organisations\"\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/partygroups/5de76fac36c38aa77e78ba14", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partygroups", + "5de76fac36c38aa77e78ba14" + ] + } + }, + "response": [] + }, + { + "name": "Delete PartyGroup", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "localhost:5000/v1/predefines/partygroups/5de76fac36c38aa77e78ba14", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partygroups", + "5de76fac36c38aa77e78ba14" + ] + } + }, + "response": [] + }, + { + "name": "List All PartyGroup", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:5000/v1/predefines/partygroups", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "partygroups" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "EventGroup", + "item": [ + { + "name": "Create EventGroup", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"code\": \"H\",\n \"name\": {\n \"en\": \"Meteorological\"\n },\n \"color\": \"#86C7E8\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/eventgroups/", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventgroups", + "" + ] + } + }, + "response": [] + }, + { + "name": "Retrieve EventGroup", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventgroups/5de672d536c38aa77e78b9e8", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventgroups", + "5de672d536c38aa77e78b9e8" + ] + } + }, + "response": [] + }, + { + "name": "Update EventGroup", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"name\": {\n \"en\": \"Biological\"\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/eventgroups/5de672d536c38aa77e78b9e8", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventgroups", + "5de672d536c38aa77e78b9e8" + ] + } + }, + "response": [] + }, + { + "name": "Update EventGroup", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"name\": {\n \"en\": \"Biological\"\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/eventgroups/5de672d536c38aa77e78b9e8", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventgroups", + "5de672d536c38aa77e78b9e8" + ] + } + }, + "response": [] + }, + { + "name": "Delete EventGroup", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventgroups/5de672d536c38aa77e78b9e8", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventgroups", + "5de672d536c38aa77e78b9e8" + ] + } + }, + "response": [] + }, + { + "name": "List All EventGroup", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventgroups", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventgroups" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "EventType", + "item": [ + { + "name": "Create EventType", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"code\": \"SW\",\n \"name\": {\n \"en\": \"Volcanic activity\"\n },\n \"color\": \"#86C7E8\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/eventtypes", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventtypes" + ] + } + }, + "response": [] + }, + { + "name": "Retrieve EventType", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventtypes/5de6771336c38aa77e78b9f4", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventtypes", + "5de6771336c38aa77e78b9f4" + ] + } + }, + "response": [] + }, + { + "name": "Update EventType", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"name\": {\n \"en\": \"Mass Movement (dry)\"\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/eventtypes/5de6771336c38aa77e78b9f4", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventtypes", + "5de6771336c38aa77e78b9f4" + ] + } + }, + "response": [] + }, + { + "name": "Update EventType", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"name\": {\n \"en\": \"Mass Movement (dry)\"\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/eventtypes/5de6771336c38aa77e78b9f4", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventtypes", + "5de6771336c38aa77e78b9f4" + ] + } + }, + "response": [] + }, + { + "name": "Delete EventType", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventtypes/5de6771336c38aa77e78b9f4", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventtypes", + "5de6771336c38aa77e78b9f4" + ] + } + }, + "response": [] + }, + { + "name": "List All EventType", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventtypes", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventtypes" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "EventSeverity", + "item": [ + { + "name": "Create EventSeverity", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Requires immediate attention\"\n },\n \"name\": {\n \"en\": \"Critial\"\n },\n \"color\": \"#86C7E8\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/eventseverities", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventseverities" + ] + } + }, + "response": [] + }, + { + "name": "Retrieve EventSeverity", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:5000/v1/predefines/eventseverities/5de772f036c38aa77e78ba1e", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventseverities", + "5de772f036c38aa77e78ba1e" + ] + } + }, + "response": [] + }, + { + "name": "Update EventSeverity ", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Requires immediate attention from party\"\n },\n \"name\": {\n \"en\": \"Critial\"\n },\n \"color\": \"#86C7E8\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/eventseverities/5de772f036c38aa77e78ba1e", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventseverities", + "5de772f036c38aa77e78ba1e" + ] + } + }, + "response": [] + }, + { + "name": "Update EventSeverity", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Requires immediate attention from party\"\n },\n \"name\": {\n \"en\": \"Critial\"\n },\n \"color\": \"#86C7E8\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/eventseverities/5de772f036c38aa77e78ba1e", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventseverities", + "5de772f036c38aa77e78ba1e" + ] + } + }, + "response": [] + }, + { + "name": "Update EventSeverity", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Requires immediate attention from party\"\n },\n \"name\": {\n \"en\": \"Critial\"\n },\n \"color\": \"#86C7E8\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/eventseverities/5de772f036c38aa77e78ba1e", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventseverities", + "5de772f036c38aa77e78ba1e" + ] + } + }, + "response": [] + }, + { + "name": "List All EventSeverity", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:5000/v1/predefines/eventseverities", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventseverities" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "EventCertainty", + "item": [ + { + "name": "Create EventCertainty", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Determined to have occured or to be ongoing\"\n },\n \"name\": {\n \"en\": \"Predicted\"\n },\n \"color\": \"#86C7E9\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/eventcertainties", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventcertainties" + ] + } + }, + "response": [] + }, + { + "name": "Retrieve EventCertainty", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:5000/v1/predefines/eventcertainties/5de7785536c38aa77e78ba29", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventcertainties", + "5de7785536c38aa77e78ba29" + ] + } + }, + "response": [] + }, + { + "name": "Update EventCertainty", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Possibility to occur\"\n },\n \"name\": {\n \"en\": \"Predicted\"\n },\n \"color\": \"#86C7E9\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/eventcertainties/5de7785536c38aa77e78ba29", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventcertainties", + "5de7785536c38aa77e78ba29" + ] + } + }, + "response": [] + }, + { + "name": "Update EventCertainty", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"description\": {\n \"en\": \"Possibility to occur\"\n },\n \"name\": {\n \"en\": \"Predicted\"\n },\n \"color\": \"#86C7E9\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/eventcertainties/5de7785536c38aa77e78ba29", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventcertainties", + "5de7785536c38aa77e78ba29" + ] + } + }, + "response": [] + }, + { + "name": "Update EventCertainty", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:5000/v1/predefines/eventcertainties/5de7785536c38aa77e78ba29", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventcertainties", + "5de7785536c38aa77e78ba29" + ] + } + }, + "response": [] + }, + { + "name": "List All EventCertainty", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:5000/v1/predefines/eventcertainties", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventcertainties" + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "id": "5099208b-e72d-4a1f-bc02-556fb2bf3957", + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "id": "0e00e674-f15d-493b-9ad6-9f9b4d5c713f", + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "EventFunction", + "item": [ + { + "name": "Create EventFunction", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"code\": \"DBM\",\n \"name\": {\n \"en\": \"Dead Bodies Management\"\n },\n \"color\": \"#F9C5A7\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/eventfunctions", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventfunctions" + ] + } + }, + "response": [] + }, + { + "name": "Retrieve EventFunction", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventfunctions/5de77a1f36c38aa77e78ba2f", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventfunctions", + "5de77a1f36c38aa77e78ba2f" + ] + } + }, + "response": [] + }, + { + "name": "Update EventFunction", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "type": "text", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"name\": {\n \"en\": \"Dead Bodies Management\"\n },\n \"description\": {\n \"en\": \"\"\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/eventfunctions/5de77a1f36c38aa77e78ba2f", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventfunctions", + "5de77a1f36c38aa77e78ba2f" + ] + } + }, + "response": [] + }, + { + "name": "Update EventFunction", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"name\": {\n \"en\": \"Dead Bodies Management\"\n },\n \"description\": {\n \"en\": \"\"\n }\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/eventfunctions/5de77a1f36c38aa77e78ba2f", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventfunctions", + "5de77a1f36c38aa77e78ba2f" + ] + } + }, + "response": [] + }, + { + "name": "Delete EventFunction", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventfunctions/5de77a1f36c38aa77e78ba2f", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventfunctions", + "5de77a1f36c38aa77e78ba2f" + ] + } + }, + "response": [] + }, + { + "name": "List All EventFunction", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventfunctions", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventfunctions" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "EventAction", + "item": [ + { + "name": "Create EventAction", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventactions", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventactions" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "EventCatalogue", + "item": [ + { + "name": "Create EventCatalogue", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/eventcatalogues", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "eventcatalogues" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "Event", + "item": [ + { + "name": "Create Event", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"username\": \"richardaggrey7@gmail.com\",\n \"password\": \"123456789\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/signin", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "signin" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "EventNotification", + "item": [], + "protocolProfileBehavior": {} + }, + { + "name": "EventChangelog", + "item": [], + "protocolProfileBehavior": {} + }, + { + "name": "AdministrativeArea", + "item": [ + { + "name": "Create AdministrativeArea", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"name\": {\n \"en\": \"District\"\n },\n \"description\": {\n \"en\": \"The name of the metropolitan area itself\"\n },\n \"level\": 1,\n \"color\": \"#F9C5A7\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/administrativelevels", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "administrativelevels" + ] + } + }, + "response": [] + }, + { + "name": "Retrieve AdministrativeArea", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/administrativelevels/5de67b8436c38aa77e78ba01", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "administrativelevels", + "5de67b8436c38aa77e78ba01" + ] + } + }, + "response": [] + }, + { + "name": "Update AdministrativeArea", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"name\": {\n \"en\": \"District\"\n },\n \"description\": {\n \"en\": \"District Area\"\n },\n \"level\": 0\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/administrativelevels/5de67b8436c38aa77e78ba01", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "administrativelevels", + "5de67b8436c38aa77e78ba01" + ] + } + }, + "response": [] + }, + { + "name": "Update AdministrativeArea", + "request": { + "method": "PATCH", + "header": [ + { + "key": "Content-Type", + "name": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"strings\": {\n \"name\": {\n \"en\": \"District\"\n },\n \"description\": {\n \"en\": \"District Area\"\n },\n \"level\": 0\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:5000/v1/predefines/administrativelevels/5de67b8436c38aa77e78ba01", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "administrativelevels", + "5de67b8436c38aa77e78ba01" + ] + } + }, + "response": [] + }, + { + "name": "Delete AdministrativeArea", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/administrativelevels/5de67b8436c38aa77e78ba01", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "administrativelevels", + "5de67b8436c38aa77e78ba01" + ] + } + }, + "response": [] + }, + { + "name": "List All AdministrativeArea", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:5000/v1/predefines/administrativelevels", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "5000", + "path": [ + "v1", + "predefines", + "administrativelevels" + ] + } + }, + "response": [] + } + ], + "protocolProfileBehavior": {} + }, + { + "name": "FeatureType", + "item": [], + "protocolProfileBehavior": {} + }, + { + "name": "Feature", + "item": [], + "protocolProfileBehavior": {} + } + ], + "protocolProfileBehavior": {} +} \ No newline at end of file