lotr-api icon indicating copy to clipboard operation
lotr-api copied to clipboard

Feature/graphql

Open FroggyRocky opened this issue 1 year ago • 5 comments

add graphql support to all existing routes

FroggyRocky avatar Oct 18 '24 15:10 FroggyRocky

I added graphql route that essentially has a relay middleware that transforms requests in the way that allows us to use existing controllers initially created for REST. This way we wound't have to worry about synchronizing REST vs graphql in case we change/add additional behaviors to controllers.

@gitfrosh I just want you to see the approach, in case you approve it, I will promptly add pagination params in the request arguments + auth middleware

FroggyRocky avatar Oct 18 '24 16:10 FroggyRocky

pagination and authorization added ✅

FroggyRocky avatar Oct 21 '24 21:10 FroggyRocky

this addresses issue #16

FroggyRocky avatar Oct 23 '24 08:10 FroggyRocky

@gitfrosh please take a look at this one too

MateuszKikmunter avatar Aug 19 '25 15:08 MateuszKikmunter

Hi @FroggyRocky, thanks a lot for your contribution! It would be great to have a basic documentation on how to use the new endpoint. Also while testing locally, I get a 401 when calling /graphql. Any ideas?

gitfrosh avatar Nov 02 '25 16:11 gitfrosh