endpoint_service list_with_status - BenjaminFourmaux/ServiceDown-api GitHub Wiki

Service/list_with_status

list of all services from a country with current status

Methods

Request

GET api.service-down.net/service/country/:country_id/with_status

Parameters

List of url parameters available on this endpoint

Name Description Type
page (optionnal) Index for pagination. By default 1 number

Response

Return an array of Service with Status wrapped into Paging

{
	"data": [
		{
			"service": {
				"id": 146
				"name": "Orange",
				"cname": "ORANGE",
				"path": "/status/orange-france",
				"countries": [
					74
				]
			},
			"country": 74,
			"status": {
				"id": 3,
				"label": "error"
			}
		},
		...
	],
	"paging": {
		"totalDataCount": 3,
		"dataPerPage": 6,
		"currentPage": 1,
		"hasPrev": false,
		"hasNext": false,
		"totalPage": 1
	}
}

Errors