🏒Stations

Manage all stations registered in the system

Fetches all stations registered in the system

GET https://api.data.tapngogh.com/stations/all

Returns an array of stations

Query Parameters

Name
Type
Description

assembly

_id

query stations by assembly

Headers

Name
Type
Description

Authorization*

String


   [
		{
			"_id": "632af722d788233a09a97c8c",
			"name": "General Station",
			"assembly": {
				"_id": "632ae03b5a28c948af732b6c",
				"name": "General Assembly",
				"region": "62d88a9e4c20a7902942117b",
				"digitalAddress": "GS-234-323",
				"type": "district",
				"createdAt": "2022-09-21T09:58:19.357Z",
				"updatedAt": "2022-09-21T09:58:19.357Z",
				"__v": 0
			},
			"transportUnions": [
				{
					"_id": "632af57fd788233a09a97c65",
					"name": "GPRTU",
					"createdAt": "2022-09-21T11:29:03.567Z",
					"updatedAt": "2022-09-21T11:29:03.567Z",
					"__v": 0
				}
			],
			"zones": [
				{
					"_id": "6336b6f68f527169f66a81d6",
					"name": "Agbogba",
					"routes": [
						"6336b6e38f527169f66a81d3"
					],
					"createdAt": "2022-09-30T09:29:26.734Z",
					"updatedAt": "2022-09-30T09:29:26.734Z",
					"__v": 0
				}
			],
			"contactNumber": 548215801,
			"digitalAddress": "GG-432-432",
			"createdAt": "2022-09-21T11:36:02.464Z",
			"updatedAt": "2022-09-30T09:52:44.600Z",
			"__v": 0
		}
	]

Last updated

Was this helpful?