mirror of
https://github.com/jeffknupp/sandman2.git
synced 2026-04-25 08:35:49 +03:00
[GH-ISSUE #65] Including relational data? #45
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
refactoring
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sandman2-jeffknupp#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jcrben on GitHub (Oct 30, 2017).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/65
I was messing around with PostgREST before this and they have the concept of resource embedding to pull in related data. Is there anything similar here? It also seems like https://github.com/pyeve/eve-sqlalchemy supports this.
With sandman(1), it seems like the docs suggest that there should be links - altho there is a field named links, it's not clear how that relates to items:

With sandman2, I don't even see a link:

Schema constructed with a simple many-to-many relationship:
@jcrben commented on GitHub (Nov 19, 2017):
Closing this as I have decided not to use this library.
@rrjanbiah commented on GitHub (Jan 15, 2019):
Same question here.
@jcrben What library or approach did you choose?
@jeffknupp commented on GitHub (Jan 16, 2019):
@jcrben @rrjanbiah
sandman2uses the Link Header, which is how this information is meant to be conveyed; you'll find all of the data you're looking for there.@rrjanbiah commented on GitHub (Jan 17, 2019):
@jeffknupp Thank you!
@mrhaoji commented on GitHub (Apr 16, 2020):
Where can I find the "Link Header"? in the response Header? @jeffknupp