directus/directus

Directus URLs Return JSON

benhaynes asked for this feature about 1 year ago — 1 comment

benhaynes commented about 1 year ago Admin

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

Join the discussion!

Sign-in with GitHub to comment