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

A way to headless API usage #62

Open
sveetch opened this issue Oct 11, 2023 · 1 comment
Open

A way to headless API usage #62

sveetch opened this issue Oct 11, 2023 · 1 comment
Labels
API Enhancement Feature enhancement

Comments

@sveetch
Copy link
Member

sveetch commented Oct 11, 2023

Is your feature request related to a problem? Please describe.
Currently all serializers include objet detail URL so it involves url resolution on HTML frontend, therefor the HTML frontend is required.

Describe the solution you'd like

Serializer may be flexible enough to work without HTML frontend urls enabled, so Lotus could be a headless blog as a "API only" (but still need Django admin to write contents);

@sveetch sveetch mentioned this issue Oct 11, 2023
12 tasks
@sveetch sveetch changed the title Serializer may be flexible enough to work without HTML frontend urls enabled, so Lotus could be a headless blog as a "API only" (but still need Django admin to write contents); A way to headless API usage Oct 11, 2023
@sveetch sveetch added Enhancement Feature enhancement API labels Oct 11, 2023
@sveetch
Copy link
Member Author

sveetch commented Oct 24, 2024

I've inspected the API in its current stage and it is almost ready since all the included links everywhere are always pointing to the API, there is still only the detail URL path (with hostname) but it won't involve any resolution and is only given as an alternative in addition of the detail API endpoint.

The only thing we could do here is to make the detail URL path optional so API payload would never include links to HTML views, only the API. So the other API issues may be a higher priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Enhancement Feature enhancement
Projects
None yet
Development

No branches or pull requests

1 participant