Skip to content

Releases: hasura/ndc-http

v0.4.0

27 Nov 06:03
95bf571
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.4.0

v0.3.0

11 Nov 03:41
82013dc
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.4...v0.3.0

v0.2.4

02 Sep 08:51
a8f8066
Compare
Choose a tag to compare

What's Changed

  • Support application/x-ndjson response content type by @hgiasac in #19
  • upgrade ndc-sdk-go v1.3.0 by @hgiasac in #20

Full Changelog: v0.2.3...v0.2.4

v0.2.3

07 Aug 17:26
5f20768
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.2...v0.2.3

v0.2.2

06 Aug 15:33
3147cdf
Compare
Choose a tag to compare

What's Changed

  • inject trace headers to incoming requests and improve distributed docs by @hgiasac in #15
  • upgrade dependencies by @hgiasac in #16

Full Changelog: v0.2.1...v0.2.2

v0.2.1

10 Jun 17:52
6c9a562
Compare
Choose a tag to compare

What's Changed

  • Upgrade ndc-rest-schema v0.2.1 by @hgiasac in #12
  • Deprecate the convert command. You should install and use ndc-rest-schema binary directly.
  • misc: change default config directory to /etc/connector by @hgiasac in #13
  • fix: avoid modifying mutable request endpoints by @hgiasac in #14

Full Changelog: v0.2.0...v0.2.1

v0.2.0

08 Jun 17:35
8b4d6ee
Compare
Choose a tag to compare

Highlights

Distributed execution

Imagine that your backend have many server replications, or multiple applications with different credentials. You want to:

  • Specify the server where the request will be executed to.
  • Execute an operation to all servers.

For example, with below server settings, the connector will replicate existing operations with Distributed suffixes:

settings:
  servers:
    - id: dog
      url: "http://localhost:3000"
      securitySchemes:
        api_key:
          type: apiKey
          value: "dog-secret"
          in: header
          name: api_key
    - id: cat
      url: "http://localhost:3001"
      securitySchemes:
        api_key:
          type: apiKey
          value: "cat-secret"
          in: header
          name: api_key
{
  "functions": [
    {
      "arguments": {
        "restOptions": {
          "type": {
            "type": "nullable",
            "underlying_type": {
              "name": "RestSingleOptions",
              "type": "named"
            }
          }
        }
      },
      "name": "findPets",
      "result_type": {
        "element_type": {
          "name": "Pet",
          "type": "named"
        },
        "type": "array"
      }
    },
    {
      "arguments": {
        "restOptions": {
          "type": {
            "type": "nullable",
            "underlying_type": {
              "name": "RestDistributedOptions",
              "type": "named"
            }
          }
        }
      },
      "name": "findPetsDistributed",
      "result_type": {
        "name": "FindPetsDistributedResult",
        "type": "named"
      }
    }
  ]
}

RestSingleOptions object type is added to existing operations (findPets). API consumers can specify the server to be executed. If you want to execute all remote servers in sequence or parallel, findPetsDistributed function should be used.

Config schema changes

Reuse the config schema of ndc-rest-schema. There is a breaking change in the field name path -> file .

What's Changed

Full Changelog: v0.1.3...v0.2.0

v0.1.3

11 May 17:13
dd4d340
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.2...v0.1.3

v0.1.2

17 Apr 05:05
10b0ccc
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.1...v0.1.2

v0.1.1

15 Apr 04:20
c53875e
Compare
Choose a tag to compare

What's Changed

  • Support timeout and retry settings by @hgiasac in #8

Full Changelog: v0.1.0...v0.1.1