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

Vienos savybės duomenų užklausos (subresource) #12

Closed
sirex opened this issue Apr 24, 2024 · 2 comments · Fixed by #28
Closed

Vienos savybės duomenų užklausos (subresource) #12

sirex opened this issue Apr 24, 2024 · 2 comments · Fixed by #28
Labels
Milestone

Comments

@sirex
Copy link
Contributor

sirex commented Apr 24, 2024

Galimybė gauti ne viso resurso duomenis, bet tik vienos konkrečios savybės, pagal tokį API užklausos šabloną:

/{group}/{form}/{org}/{dataset}/{model}/{id}/{property}

Tarkime, jei modelis turi file tipo duomenų lauką pavadinimu pdf, tada vykdant tokią užklausą:

GET /datasets/example/Report/25484bf5-fc44-4b96-beeb-2eb4fa0923fa/pdf

Būtų atsiųsta PDF failas.

Analogiškai turint backref tipo duomenų lauką pavadinimu cities[], vykdant tokią užklausą:

GET /datasets/example/Country/95d7b8fa-51f7-4211-9b8a-cb58f29b5295/cities

Būtų grąžinti visi konkrečios šalies miestai.

Susiję

@sirex
Copy link
Contributor Author

sirex commented Jul 30, 2024

Gal būt reikėtu iškelti tai į atskirą grupę "subresource"?

@sirex sirex added this to the 1.0 milestone Jul 30, 2024
@sirex
Copy link
Contributor Author

sirex commented Aug 7, 2024

Vis dar nematau naujo veiksmo "subresource":

image

@sirex sirex closed this as completed in #28 Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant