-
Notifications
You must be signed in to change notification settings - Fork 429
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
[juniper_rocket] Document GET request syntax #1098
Comments
@ysulyma Until then you have 2 options:
|
This is not true. In the specified example is used The example, however, is really broken. Rather than having #[rocket::get("/graphql?<request>")] attribute, it should have #[rocket::get("/graphql?<request..>")] |
- rework `rocket_server` example as `simple` - provide example in `GraphQLRequest` API docs - mention GET query format in `GraphQLRequest` API docs and `simple` example Additionally: - fix `operationName` query parameter handling - make `graphiql_source()` and `playground_source()` polymorphic over `subscriptions_endpoint_url` argument - provide examples in `graphiql_source()` and `playground_source()` API docs - move integration HTTP tests to a separate file - test both sync and async `juniper_rocket` in integration HTTP tests - polish `FromForm` unit tests
@ysulyma the example was fixed, and now mentions the GET request query format: juniper/juniper_rocket/examples/simple.rs Lines 29 to 41 in bd8dc58
|
I am using the Juniper Rocket example. The POST endpoint and GraphiQL interface work for me, but I can't figure out how to send a GET request. (I'm also new to using Rocket.) I have tried
where {} is a URL-encoded version of
and none of these work for me.
An explicit example of a GET request that works would be helpful.
The text was updated successfully, but these errors were encountered: