V8-archive: Update /types

Created on 10 Jan 2020  Â·  3Comments  Â·  Source: directus/v8-archive

We apparently have a /types endpoint that afaik doesn't really do anything useful. (It's not being used in the app either).

We should either:

A) Update it
Make it return more information about the types available, like what SQL type they correspond to or what they do with a description, and scope it as /server/types

B) Remove it
.. I don't really see the use of having this read only information being returned in the API, but let me know if you feel otherwise 🙂

api

Most helpful comment

IMO, we should go with the remove it. It's just documentation. So let's put it on the doc only [which is already there] and remove it from API.

All 3 comments

Note: this is a breaking change

Seems like something that can just be in the docs — unless we wanted to make it extensible, but I don't see why we would want to do that.

Ref: https://docs.directus.io/guides/field-types.html

IMO, we should go with the remove it. It's just documentation. So let's put it on the doc only [which is already there] and remove it from API.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Varulv1997 picture Varulv1997  Â·  3Comments

magikstm picture magikstm  Â·  3Comments

metalmarco picture metalmarco  Â·  3Comments

vuhrmeister picture vuhrmeister  Â·  3Comments

cdwmhcc picture cdwmhcc  Â·  3Comments