API-Dokumentation verlinkt die erlaubten Parameter auf die API-Aufrufe
authorMalte Bublitz <malte@rolltreppe3.de>
Fri, 15 Jul 2022 09:27:12 +0000 (11:27 +0200)
committerMalte Bublitz <malte@rolltreppe3.de>
Fri, 15 Jul 2022 09:27:12 +0000 (11:27 +0200)
API.md

diff --git a/API.md b/API.md
index 7872833b3edf5a5a55e3b46687881b9ca2285abd..232183b446590dc8d01ced24974ea00f51ce0ebc 100644 (file)
--- a/API.md
+++ b/API.md
@@ -2,19 +2,32 @@
 
 You can access the API at:
 
-       https://ip.malte70.de/api.php/*query*
+       https://ip.malte70.de/api.php/<query>
 
-Query might be one of the following values:
+`<query>` might be one of the following values:
 
-- ip
-- hostname
-- useragent
-- browser
-- operatingsystem
-- lang
-- country
-- city
-- postal_code
-- coordinates
-- latitute
-- longitude
+- [ip][1]
+- [hostname][2]
+- [useragent][3]
+- [browser][4]
+- [operatingsystem][5]
+- [lang][6]
+- [country][7]
+- [city][8]
+- [postal_code][9]
+- [coordinates][10]
+- [latitute][11]
+- [longitude][12]
+
+[1]: https://ip.malte70.de/api.php/ip
+[2]: https://ip.malte70.de/api.php/hostname
+[3]: https://ip.malte70.de/api.php/useragent
+[4]: https://ip.malte70.de/api.php/browser
+[5]: https://ip.malte70.de/api.php/operatingsystem
+[6]: https://ip.malte70.de/api.php/lang
+[7]: https://ip.malte70.de/api.php/country
+[8]: https://ip.malte70.de/api.php/city
+[9]: https://ip.malte70.de/api.php/postal_code
+[10]: https://ip.malte70.de/api.php/coordinates
+[11]: https://ip.malte70.de/api.php/latitute
+[12]: https://ip.malte70.de/api.php/longitude