Releases: hasura/ndc-http
Releases · hasura/ndc-http
v0.4.0
What's Changed
- feat: CLI plugin by @hgiasac in #27
- fix: the jsonschema ref link by @hgiasac in #28
- feat: rename
ndc-rest
tondc-http
by @hgiasac in #29 - fix: OAS conversion and trim special characters by @hgiasac in #30
- feat: revise the security schema by @hgiasac in #31
- feat: support xml content type by @hgiasac in #32
Full Changelog: v0.3.0...v0.4.0
v0.3.0
v0.2.4
v0.2.3
What's Changed
- feat: apply default headers from settings by @hgiasac in #17
- feat: upgrade ndc-rest-schema v0.2.2 by @hgiasac in #18
Full Changelog: v0.2.2...v0.2.3
v0.2.2
v0.2.1
What's Changed
- Upgrade ndc-rest-schema v0.2.1 by @hgiasac in #12
- Deprecate the
convert
command. You should install and usendc-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
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
- Support distributed execution strategies by @hgiasac in #11
- Upgrade ndc-rest-schema v0.2.0 and NDC spec v0.1.3 by @hgiasac in #11
- Improve parameter decoding and
application/x-www-form-urlencoded
content type by @hgiasac in #11
Full Changelog: v0.1.3...v0.2.0