Directus
#### :rotating_light: MIGRATED FROM REQUESTS.GETDIRECTUS.COM :rotating_light:

# Directus URLs Return JSON

### :+1: = 7


-----
### @benhaynes – (2 years ago)

Would it be possible to have any Directus Framework URL path become an JSON API endpoint by simply adding ".json" to the end? We could then have parameters for how deep (relationally) you want to fetch information. I wonder how this compares to our current way of serving up data (/api/1/xxx..)

So: http://local.directus.com/users/1.json would return the user's info in JSON




-----
### @rijkvanzanten – :-1: (1 year ago)

That would drop the version from the URL which makes it quite hard to update things without introducing breaking changes for the user..