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

As part of the metadata page provide the urls for the relationship fields #388

Open
2 tasks
Tracked by #23 ...
jon-nfc opened this issue Nov 11, 2024 · 0 comments
Open
2 tasks
Tracked by #23 ...
Labels
task::feature Adds functionality type::task Issue Type

Comments

@jon-nfc
Copy link
Member

jon-nfc commented Nov 11, 2024

the metadata (HTTP/OPTIONS) returns the field meta for creating the fields. However for model relationships there is no information.

Details

Add to the metadata a urls section that is the query point for the related model.

Implementation should be added to the model wherein it has a property that returns the url for lookup and the url for self.

Update: as part of the meta fields, the values already exist in the field object. these have been added to the meta field as choices.

Tasks

  • [ ] Add property to ALL models that returns the models lookup url (ViewSet-list)
  • [ ] Add property to ALL models that returns an individual models url (ViewSet-detail)

Requirements

  • Unit tested
  • No data returned is from an org the user has no access to

Links

@jon-nfc jon-nfc added type::task Issue Type task::feature Adds functionality labels Nov 11, 2024
@jon-nfc jon-nfc added this to the v1.4 - UI / API Refactor milestone Nov 11, 2024
@jon-nfc jon-nfc moved this to Planning in Centurion ERP Nov 11, 2024
jon-nfc added a commit to nofusscomputing/centurion_erp_ui that referenced this issue Nov 11, 2024
jon-nfc added a commit to nofusscomputing/centurion_erp_ui that referenced this issue Nov 11, 2024
jon-nfc added a commit to nofusscomputing/centurion_erp_ui that referenced this issue Nov 11, 2024
jon-nfc added a commit to nofusscomputing/centurion_erp_ui that referenced this issue Nov 13, 2024
jon-nfc added a commit to nofusscomputing/centurion_erp_ui that referenced this issue Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task::feature Adds functionality type::task Issue Type
Projects
Status: Planning
Development

No branches or pull requests

1 participant