Skip to content

Commit cc9f25f

Browse files
committed
update advanced API
1 parent 8a81672 commit cc9f25f

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

  • docs/connecting-data/advanced-api-features

‎docs/connecting-data/advanced-api-features/index.md‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ description: Configure advanced API behaviors with custom error definitions, red
55

66
# Advanced API features
77

8-
Nordcraft provides several advanced API features to give you fine-grained control over your API connections. You can configure the following features using the **Advanced** tab in the API configuration panel.
8+
Nordcraft provides several advanced API features to give you more control over your API connections. You can configure the following features using the **Advanced** tab in the API configuration panel.
99

1010
## Error definition
1111

12-
By default, Nordcraft treats API responses with status codes 400 and above as errors. However, some APIs communicate errors differently, such as [GraphQL APIs](https://graphql.org/learn/serving-over-http#response-format), which return errors in the response body with a 200 (Ok) status code.
12+
By default, Nordcraft treats API responses with status codes 400 and above as errors. However, some APIs communicate errors differently, such as [GraphQL APIs](https://graphql.org/learn/serving-over-http#response-format), which return errors in the response body with a `200 (Ok)` status code.
1313

1414
![The edit API dialog is open. The currently selected tab is Advanced. This image highlights the is error dropdown, showing that the value for is error is currently blank, which falls back to the default. There is an fx button available next to the is error value, which is configurable via a formula.|16/9](configure-error-definition.webp 'Configure error definition')
1515

@@ -108,7 +108,7 @@ The Nordcraft proxy only processes request and response metadata such as headers
108108

109109
## Response parsing
110110

111-
By default, Nordcraft automatically determines how to parse API responses based on the `Content-Type` HTTP response header. In some cases, you may need to override this behavior.
111+
By default, Nordcraft automatically determines how to parse API responses based on the `Content-Type` HTTP response header. In some cases, you may need to override this behavior. This is particularly useful when working with APIs that return incorrect or missing `Content-Type` headers.
112112

113113
![The edit API dialog is open. The currently selected tab is Advanced. This image highlights the response parsing, showing that the value for parse as is currently set to blank, which falls back to the default.|16/9](configure-response-parsing.webp 'Configure response parsing')
114114

@@ -121,13 +121,11 @@ The **Parse as** dropdown allows you to select from several parsing options:
121121
- **JSON stream**: Parses as a stream of JSON objects (see the [NDJSON](https://github.com/ndjson/ndjson-spec) specification)
122122
- **Blob**: Handles the response as a blob (read more about blobs on the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob))
123123

124-
This is particularly useful when working with APIs that return incorrect or missing `Content-Type` headers.
125-
126124
## Performance settings
127125

128126
### Debounce
129127

130-
Debouncing limits how frequently an API can be called, which is useful when API requests are triggered by rapid user actions like typing.
128+
Debouncing limits how frequently an API can be called, which is useful when API requests are triggered by rapid user actions like typing into a search field.
131129

132130
![The edit API dialog is open. The currently selected tab is Advanced. This image highlights the debounce area, showing that the value for debounce is currently null, but can be configured using a formula using the fx button.|16/9](configure-debounce.webp 'Configure debouce')
133131

@@ -147,7 +145,7 @@ Common use cases include:
147145

148146
### Timeout
149147

150-
The timeout setting allows you to specify a maximum wait time for API responses.
148+
Using the timeout setting, you can specify a maximum wait time for API responses.
151149

152150
![The edit API dialog is open. The currently selected tab is Advanced. This image highlights the timeout area, showing that the value for timeout is currently null, but can be configured using a formula using the fx button.|16/9](configure-timeout.webp 'Configure timeout')
153151

0 commit comments

Comments
 (0)