-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' of github.com:uncefact/tests-untp into aatp-deplo…
…yment-0.5.0 * 'next' of github.com:uncefact/tests-untp: docs: add diagrams for the import and scanning component (#154) feat: add new link types (#164) chore: update idr docker image for link types voc (#166) docs: update extensions section (#158)
- Loading branch information
Showing
27 changed files
with
554 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
sidebar_position: 57 | ||
title: HTTP Headers | ||
--- | ||
|
||
import Disclaimer from '../.././\_disclaimer.mdx'; | ||
|
||
<Disclaimer /> | ||
|
||
## Description | ||
|
||
The `Http Headers` object contains configuration details for the HTTP headers that is used to make requests. The headers content follow the [HTTP headers specification](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers). | ||
|
||
## Example | ||
|
||
```json | ||
{ | ||
"Authorization": "Bearer test", | ||
"Content-Type": "application/json" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
sidebar_position: 58 | ||
title: Payload Type | ||
--- | ||
|
||
import Disclaimer from '../../\_disclaimer.mdx'; | ||
|
||
<Disclaimer /> | ||
|
||
## Description | ||
|
||
The `type` property of the `props` object in a [component](/docs/mock-apps/configuration/component-config) configuration defines the kind of data that component is responsible for handling. | ||
|
||
## Usage | ||
|
||
The `type` property of the `props` object is required for component receiving data such as [import-button](/docs/mock-apps/components/import-button), [qr-code-scanner-dialog-button](/docs/mock-apps/components/qr-code-scanner-dialog-button), etc. The component will use the `type` to determine how to handle the data it receives. | ||
|
||
## Types | ||
|
||
### JSON | ||
|
||
When a component has the `JSON` type, it will suppose receive any JSON object as its payload and will not transform it in any way. | ||
|
||
### VerifiableCredential | ||
|
||
When a component has the `VerifiableCredential` type, it will suppose receive a [Verifiable Credential](/docs/mock-apps/common/verifiable-credentials) as its payload and will verify the credential before using it. | ||
|
||
## Examples | ||
|
||
```json | ||
{ | ||
"name": "ImportButton", | ||
"type": "EntryData", | ||
"props": { | ||
"label": "Import JSON", | ||
"type": "JSON", | ||
"style": {} | ||
} | ||
} | ||
``` | ||
|
||
In this example, the `ImportButton` component is of type `EntryData` and expects any JSON object as its payload. | ||
|
||
```json | ||
{ | ||
"name": "ImportButton", | ||
"type": "EntryData", | ||
"props": { | ||
"label": "Import JSON", | ||
"type": "VerifiableCredential", | ||
"style": {} | ||
} | ||
} | ||
``` | ||
|
||
In this example, the `ImportButton` component is of type `EntryData` and expects a Verifiable Credential as its payload. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.