This api contains information about all the towns in Accra.
POST /town
{
"TownName": "Mamprobi",
"District":"",
"Category":"",
"Region":"",
"Population":"",
"Latitude": "",
"Longitude": "",
"startDateTime": "",
"NearbyTown": [
],
"Notable LandMarks": [
]
}
201 Created
Location: {{host}}/town/{{id}}
{
"id": "00000000-0000-0000-0000-000000000000",
"TownName": "",
"District":"",
"Category":"",
"Region":"",
"Population":"",
"Date of District Establishment":"",
"Latitude": "",
"Longitude": "",
"startDateTime": "2022-04-08T08:00:00",
"LastModifiedDateTime": "2022-04-08T11:00:00",
"NearbyTown": [
],
"Notable LandMarks": [
]
}
GET /town/{{id}}
200 Ok
{
"id": "00000000-0000-0000-0000-000000000000",
"TownName": "",
"District":"",
"Category":"",
"Region":"",
"Population":"",
"Date of District Establishment":"",
"Latitude": "",
"Longitude": "",
"startDateTime": "2022-04-08T08:00:00",
"LastModifiedDateTime": "2022-04-08T11:00:00",
"NearbyTown": [
],
"Notable LandMarks": [
]
}
PUT /town/{{id}}
{
"TownName": "",
"District":"",
"Category":"",
"Region":"",
"Population":"",
"Date of District Establishment":"",
"Latitude": "",
"Longitude": "",
"startDateTime": "2022-04-08T08:00:00",
"NearbyTown": [
],
"Notable LandMarks": [
]
}
204 No Content
or
201 Created
Location: {{host}}/town/{{id}}
DELETE /town/{{id}}
204 No Content