Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API documentation for countries #83

Closed
exyi opened this issue Aug 15, 2019 · 0 comments · Fixed by #98
Closed

API documentation for countries #83

exyi opened this issue Aug 15, 2019 · 0 comments · Fixed by #98

Comments

@exyi
Copy link

exyi commented Aug 15, 2019

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

@asbiin asbiin transferred this issue from monicahq/monica Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant