Name: referendum-place-search
Owner: FT Interactive News
Description: Microservice: search for a EU referendum voting area (local authority)
Created: 2016-06-02 09:09:24.0
Updated: 2017-05-26 17:18:45.0
Pushed: 2017-07-17 16:22:09.0
Size: 8262
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
New API: ig-uk-postcode-api
start
/?q={POSTCODE}
Returns the GSS code for the local EU referendum voting area. If the postcode isn't geographic or is for a place not voting in the referendum then returns a 404
.
The space between the outcode and incode is optional: both SE19HL
and SE1 9HL
are fine. Also the postcode can be upper or lower case.
Invalid postcodes will get a 400
error.
Example:
-v "http://localhost:9999/?q=SE19HL"
/1.1 200 OK
ss-Control-Allow-Origin: *
e-Control: max-age=31536000
ent-Type: text/plain
00028
/__gtg
Used to test the service is alive. Simply returns a 200
statusCode and and OK
in the body.