monicahq / marketing_site

The new Laravel based marketing site for Monica

Home Page:https://www.monicahq.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API documentation for countries

exyi opened this issue · comments

The documentation at https://www.monicahq.com/api/countries claims that counties are in an array

{
  "data": [
    {
      "id": 63,
      "object": "country",
      "name": "Afghanistan",
      "iso": "af"
      ...

However, that not the on my Monica instance, it returns them in a object:

{"data":{"AFG":{"id":"AF","object":"country","name":"Afghanistan","iso":"AF"},"WSB":{"id":"WSB","object":"country","name":"Akrotiri","iso":"WSB"},...

By the way, a link to "Country's API" from https://www.monicahq.com/api/addresses goes to https://www.monicahq.com/api/countries.md, which is dead. Correct url is probably https://www.monicahq.com/api/countries