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

Add sendHttpRequest mutation to send schemaless HTTP requests #45

Merged
merged 6 commits into from
Dec 16, 2024

Conversation

hgiasac
Copy link
Collaborator

@hgiasac hgiasac commented Dec 15, 2024

Add a new sendHttpRequest mutation to send schemaless HTTP requests. It's used as a dynamic GraphQL to REST proxy.

mutation {
  sendHttpRequest(
    body: {
      id: 101,
      title: "Hello world",
      userId: 10,
      body: "A test post"
    }
    method: "post"
    url: "https://jsonplaceholder.typicode.com/posts"
  )
}

Copy link

github-actions bot commented Dec 15, 2024

Code Coverage

Package Line Rate Health
github.com/hasura/ndc-http/connector 62%
github.com/hasura/ndc-http/connector/internal/argument 52%
github.com/hasura/ndc-http/connector/internal 55%
github.com/hasura/ndc-http/connector/internal/contenttype 56%
github.com/hasura/ndc-http/connector/internal/security 60%
github.com/hasura/ndc-http/ndc-http-schema/configuration 40%
github.com/hasura/ndc-http/ndc-http-schema/openapi/internal 49%
github.com/hasura/ndc-http/ndc-http-schema/openapi 40%
github.com/hasura/ndc-http/ndc-http-schema/schema 32%
github.com/hasura/ndc-http/ndc-http-schema/utils 43%
github.com/hasura/ndc-http/ndc-http-schema/version 26%
Summary 49% (4362 / 8968)

Minimum allowed line rate is 40%

@hgiasac hgiasac changed the title Add sendHttpRequest mutation to send raw HTTP requests Add sendHttpRequest mutation to send schemaless HTTP requests Dec 16, 2024
@hgiasac hgiasac merged commit b152004 into main Dec 16, 2024
1 check passed
@hgiasac hgiasac deleted the feat/exec-http-request branch December 16, 2024 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant