Skip to content
New issue

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

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

Already on GitHub? # to your account

convenient way to fetch non-viewset based api #24

Open
tumb1er opened this issue Dec 29, 2020 · 0 comments
Open

convenient way to fetch non-viewset based api #24

tumb1er opened this issue Dec 29, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@tumb1er
Copy link
Contributor

tumb1er commented Dec 29, 2020

Existing helpers (get_detail, get_list) expect that url is a basename of a ViewSet (i.e. model-list).
We often use plain apis without suffix at all (i.e. today or visitor).

There should be a simple way to reverse and to fetch these apis.

  • url() method should use basename without - if None is passed as suffix
  • add fetch(status, method, data) method to simplify retrieving standalone api views content.
@tumb1er tumb1er added the enhancement New feature or request label Dec 29, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant