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

[FR] List PO/SO/BO by reference in API #3671

Closed
1 of 2 tasks
miggland opened this issue Sep 13, 2022 · 3 comments · Fixed by #4083
Closed
1 of 2 tasks

[FR] List PO/SO/BO by reference in API #3671

miggland opened this issue Sep 13, 2022 · 3 comments · Fixed by #4083
Assignees
Labels
api Relates to the API enhancement This is an suggested enhancement or new feature
Milestone

Comments

@miggland
Copy link
Contributor

Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

Problem statement

When accessing orders through the API, I always have to find the ID of the order first - ie list them, look for the reference I want, then get the ID.
If the API would accept a reference field, this would be reduced to one step, eg:
https://demo.inventree.org/api/order/po/?reference=PO0006

Suggested solution

Compare to how Parts works: I can request an IPN directly using the URL:
https://demo.inventree.org/api/part/?IPN=widget.blue

Describe alternatives you've considered

List -> search for reference -> return ID

Examples of other systems

No response

Do you want to develop this?

  • I want to develop this.
@miggland miggland added enhancement This is an suggested enhancement or new feature triage:not-checked Item was not checked by the core team labels Sep 13, 2022
@matmair matmair added api Relates to the API and removed triage:not-checked Item was not checked by the core team labels Sep 13, 2022
@SchrodingersGat
Copy link
Member

@miggland should be reasonably straight-forward as the reference field is guaranteed to be unique (unlike the Part IPN field)

@SchrodingersGat SchrodingersGat self-assigned this Sep 14, 2022
@SchrodingersGat SchrodingersGat added this to the 0.9.0 milestone Sep 14, 2022
@SchrodingersGat SchrodingersGat removed their assignment Oct 2, 2022
@SchrodingersGat SchrodingersGat removed this from the 0.9.0 milestone Oct 20, 2022
@github-actions
Copy link
Contributor

This issue seems stale. Please react to show this is still important.

@github-actions github-actions bot added the inactive Indicates lack of activity label Dec 20, 2022
@miggland
Copy link
Contributor Author

This is still relevant.

@matmair matmair removed the inactive Indicates lack of activity label Dec 20, 2022
@matmair matmair added this to the 0.10.0 milestone Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API enhancement This is an suggested enhancement or new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants