From c534105f3eda2b9d97ad814f183f5b5eb81c6ab1 Mon Sep 17 00:00:00 2001 From: kerv14 Date: Thu, 7 Mar 2024 16:43:50 +0000 Subject: [PATCH] change codeblock to js format --- docs/docs/methods/bulk-postcode-lookup.mdx | 2 +- docs/docs/methods/bulk-reverse-geocoding.mdx | 2 +- docs/docs/methods/nearest-outcode.mdx | 2 +- docs/docs/methods/nearest-postcode.mdx | 2 +- docs/docs/methods/outcode-reverse-geocoding.mdx | 2 +- docs/docs/methods/outward-code-lookup.mdx | 2 +- docs/docs/methods/place-lookup.mdx | 2 +- docs/docs/methods/place-query.mdx | 2 +- docs/docs/methods/postcode-autocomplete.mdx | 2 +- docs/docs/methods/postcode-lookup.mdx | 2 +- docs/docs/methods/postcode-query.mdx | 2 +- docs/docs/methods/postcode-validation.mdx | 2 +- docs/docs/methods/random-place.mdx | 2 +- docs/docs/methods/random-postcode.mdx | 2 +- docs/docs/methods/reverse-geocoding.mdx | 2 +- docs/docs/methods/scottish-postcode-lookup.mdx | 2 +- docs/docs/methods/terminated-postcode-lookup.mdx | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/docs/methods/bulk-postcode-lookup.mdx b/docs/docs/methods/bulk-postcode-lookup.mdx index 8f010969..56e7de1e 100644 --- a/docs/docs/methods/bulk-postcode-lookup.mdx +++ b/docs/docs/methods/bulk-postcode-lookup.mdx @@ -9,7 +9,7 @@ Be sure to submit JSON requests setting `Content-Type` to `application/json` Accepts up to 100 postcodes. -```POST +```javascript POST https://api.postcodes.io/postcodes/ ``` diff --git a/docs/docs/methods/bulk-reverse-geocoding.mdx b/docs/docs/methods/bulk-reverse-geocoding.mdx index 1fa434a0..2427375d 100644 --- a/docs/docs/methods/bulk-reverse-geocoding.mdx +++ b/docs/docs/methods/bulk-reverse-geocoding.mdx @@ -5,7 +5,7 @@ title: "Bulk Reverse Geocoding" Bulk translates geolocations into Postcodes. Accepts up to 100 geolocations. -```get +```javascript POST https://api.postcodes.io/postcodes ``` diff --git a/docs/docs/methods/nearest-outcode.mdx b/docs/docs/methods/nearest-outcode.mdx index 39f32a48..ec1ea3d6 100644 --- a/docs/docs/methods/nearest-outcode.mdx +++ b/docs/docs/methods/nearest-outcode.mdx @@ -5,7 +5,7 @@ title: "Nearest Outcode" Returns nearest outcodes for a given outcode. -```get +```javascript GET https://api.postcodes.io/outcodes/:outcode/nearest ``` diff --git a/docs/docs/methods/nearest-postcode.mdx b/docs/docs/methods/nearest-postcode.mdx index 872e6900..19df4a42 100644 --- a/docs/docs/methods/nearest-postcode.mdx +++ b/docs/docs/methods/nearest-postcode.mdx @@ -5,7 +5,7 @@ title: "Nearest Postcode" Returns nearest postcodes for a given postcode. -```get +```javascript GET https://api.postcodes.io/postcodes/:postcode/nearest ``` diff --git a/docs/docs/methods/outcode-reverse-geocoding.mdx b/docs/docs/methods/outcode-reverse-geocoding.mdx index 5b6d826b..429b7ea6 100644 --- a/docs/docs/methods/outcode-reverse-geocoding.mdx +++ b/docs/docs/methods/outcode-reverse-geocoding.mdx @@ -5,7 +5,7 @@ title: "Outcode Reverse Geocoding" Returns nearest outcodes for a given longitude and latitude. -```get +```javascript GET https://api.postcodes.io/outcodes?lon=:longitude&lat=:latitude ``` diff --git a/docs/docs/methods/outward-code-lookup.mdx b/docs/docs/methods/outward-code-lookup.mdx index c2269dec..82d512eb 100644 --- a/docs/docs/methods/outward-code-lookup.mdx +++ b/docs/docs/methods/outward-code-lookup.mdx @@ -5,6 +5,6 @@ title: "Outcode Lookup" Geolocation data for the centroid of the outward code specified. The outward code represents the first half of any postcode (separated by a space). -```get +```javascript GET https://api.postcodes.io/outcodes/:outcode ``` diff --git a/docs/docs/methods/place-lookup.mdx b/docs/docs/methods/place-lookup.mdx index 6dc74f61..ab5bbe88 100644 --- a/docs/docs/methods/place-lookup.mdx +++ b/docs/docs/methods/place-lookup.mdx @@ -5,6 +5,6 @@ title: "Place Lookup" Find a place by OSGB code (e.g. "osgb4000000074564391"). Returns all available data if found. Returns 404 if place does not exist. -```get +```javascript GET https://api.postcodes.io/places/:code ``` diff --git a/docs/docs/methods/place-query.mdx b/docs/docs/methods/place-query.mdx index 9493af3d..227e2997 100644 --- a/docs/docs/methods/place-query.mdx +++ b/docs/docs/methods/place-query.mdx @@ -5,7 +5,7 @@ title: "Place Query" Submit a place query and receive a complete list of places matches and associated data. -```get +```javascript GET https://api.postcodes.io/places?q=[query] ``` diff --git a/docs/docs/methods/postcode-autocomplete.mdx b/docs/docs/methods/postcode-autocomplete.mdx index 56fbafe2..093fedc0 100644 --- a/docs/docs/methods/postcode-autocomplete.mdx +++ b/docs/docs/methods/postcode-autocomplete.mdx @@ -5,7 +5,7 @@ title: "Postcode Autocomplete" Convenient method to return an list of matching postcodes. -```get +```javascript GET https://api.postcodes.io/postcodes/:postcode/autocomplete ``` diff --git a/docs/docs/methods/postcode-lookup.mdx b/docs/docs/methods/postcode-lookup.mdx index 0b8d6b8a..fb143ad1 100644 --- a/docs/docs/methods/postcode-lookup.mdx +++ b/docs/docs/methods/postcode-lookup.mdx @@ -9,6 +9,6 @@ Returns a single postcode entity for a given postcode (case, space insensitive). If no postcode is found it returns "404" response code. -```get +```javascript GET https://api.postcodes.io/postcodes/:postcode ``` diff --git a/docs/docs/methods/postcode-query.mdx b/docs/docs/methods/postcode-query.mdx index fea91d22..abd7bc46 100644 --- a/docs/docs/methods/postcode-query.mdx +++ b/docs/docs/methods/postcode-query.mdx @@ -11,7 +11,7 @@ This method is space sensitive, i.e. it detects for spaces between outward and i The result set can either be empty or populated with up to 100 postcode entities. Either way it will always return a 200 response code -```get +```javascript GET https://api.postcodes.io/postcodes?q=[query] ``` diff --git a/docs/docs/methods/postcode-validation.mdx b/docs/docs/methods/postcode-validation.mdx index 8a2ae78c..a3aaac3b 100644 --- a/docs/docs/methods/postcode-validation.mdx +++ b/docs/docs/methods/postcode-validation.mdx @@ -5,7 +5,7 @@ title: "Postcode Lookup" Convenience method to validate a postcode. Returns true or false (meaning valid or invalid respectively) -```get +```javascript GET https://api.postcodes.io/postcodes/:postcode/validate ``` diff --git a/docs/docs/methods/random-place.mdx b/docs/docs/methods/random-place.mdx index ca075a61..7a04138d 100644 --- a/docs/docs/methods/random-place.mdx +++ b/docs/docs/methods/random-place.mdx @@ -5,6 +5,6 @@ title: "Random Place" Returns a random place and all associated data -```get +```javascript GET https://api.postcodes.io/random/places ``` diff --git a/docs/docs/methods/random-postcode.mdx b/docs/docs/methods/random-postcode.mdx index e058ea10..14c31cb6 100644 --- a/docs/docs/methods/random-postcode.mdx +++ b/docs/docs/methods/random-postcode.mdx @@ -5,7 +5,7 @@ title: "Random Postcode" Returns a random postcode and all available data for that postcode. -```get +```javascript GET https://api.postcodes.io/random/postcodes ``` diff --git a/docs/docs/methods/reverse-geocoding.mdx b/docs/docs/methods/reverse-geocoding.mdx index 5f724d73..6a909ef2 100644 --- a/docs/docs/methods/reverse-geocoding.mdx +++ b/docs/docs/methods/reverse-geocoding.mdx @@ -5,7 +5,7 @@ title: "Reverse Geocoding" Returns nearest postcodes for a given longitude and latitude. -```get +```javascript GET https://api.postcodes.io/postcodes?lon=:longitude&lat=:latitude ``` diff --git a/docs/docs/methods/scottish-postcode-lookup.mdx b/docs/docs/methods/scottish-postcode-lookup.mdx index b7aa68aa..a523f50b 100644 --- a/docs/docs/methods/scottish-postcode-lookup.mdx +++ b/docs/docs/methods/scottish-postcode-lookup.mdx @@ -7,6 +7,6 @@ Lookup a Scottish postcode. Returns SPD data associated with postcode. At the mo Returns 404 if postcode does not exist in SPD or is not valid. For postcodes not in SPD but in ONSPD, 404 is returned with error message `Postcode exists in ONSPD but not in SPD`. -```get +```javascript GET https://api.postcodes.io/scotland/postcodes/:postcode ``` diff --git a/docs/docs/methods/terminated-postcode-lookup.mdx b/docs/docs/methods/terminated-postcode-lookup.mdx index 13d14574..adea0b4c 100644 --- a/docs/docs/methods/terminated-postcode-lookup.mdx +++ b/docs/docs/methods/terminated-postcode-lookup.mdx @@ -5,6 +5,6 @@ title: "Terminated Postcode Lookup" Lookup a terminated postcode. Returns the postcode, year and month of termination. Returns 404 if postcode does not exist in our database of terminated postcodes or not valid. -```get +```javascript GET https://api.postcodes.io/terminated_postcodes/:postcode ```