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

JSON API for front-end #1

Open
CDFriend opened this issue Mar 18, 2019 · 3 comments
Open

JSON API for front-end #1

CDFriend opened this issue Mar 18, 2019 · 3 comments
Assignees

Comments

@CDFriend
Copy link
Contributor

Develop a JSON api to get grave data given ID or some sort of geographic bounding box, i.e.

GET /plots?minLat=49.9929&maxLat=52.4499&minLong=42.3323&maxLong=42.5525

HTTP 200 OK
[
    {
        "name": "Charlie Friend"
        "occupation": "destroyer of worlds"
        "pts": [ [49.9929, 42.3323], ... ]
    }
]
@CDFriend
Copy link
Contributor Author

This might be a good thing to look into, especially once we start getting into querying family trees...

https://github.com/graphql-python/graphene-sqlalchemy

@CDFriend
Copy link
Contributor Author

CDFriend commented Mar 20, 2019

JS GraphQL client, no dependencies other than fetch() :shipit:

https://graphql.org/graphql-js/graphql-clients/

@ajdeziel
Copy link
Owner

Currently working on extracting data first through SQLAlchemy (back-end), then will pass to front-end via JS.

Using GraphQL may be a good option, will investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants