kayx23 opened a new issue, #10420: URL: https://github.com/apache/apisix/issues/10420
### Description The [degraphql plugin](https://apisix.apache.org/docs/apisix/next/plugins/degraphql/) description says it supports "decoding RESTful API to GraphQL." However it doesn't fully support the REST design principal. Consider this scenario. As a user, I would like to work with graphql upstream `https://graphqlpokemon.favware.tech/v7` with the below query, which has a variable `$ability`: ``` query ($ability: AbilitiesEnum!) { getAbility(ability: $ability) { key desc name pokemonThatHaveThisAbility { key backSprite } } } ``` Say the REST endpoint I would like to expose to downstream clients is `/v7/ability/{ability_name}` and the HTTP method associated would be GET. Currently this cannot be done with the `degraphql` plugin. The plugin seems to only support sending 1) a POST request with the variable in the body or; 2) a GET request with the variable in the URL parameter. This does not conform to the RESTful design. Users should be able to expose endpoints such as `/resource/{resource_id}/morestuff` and so on. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
