Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
public:hyper_ai:home [2025/02/24 11:54] fjromero_odins.es |
public:hyper_ai:home [2025/02/25 18:04] (current) jsanchez_odins.es [Postman Collection for DID] |
||
---|---|---|---|
Line 14: | Line 14: | ||
2. Email: | 2. Email: | ||
3. Tasks involved/ | 3. Tasks involved/ | ||
- | 4. Broker Entities in particular involved: | + | 4. Severity (select from Minor, Moderate, Major and Critical): |
- | 5. Severity (select from Minor, Moderate, Major and Critical): | + | 5. Summary: |
- | 6. Summary: | + | 6. Description: |
- | 7. Description: | + | 7. Error messages obtained: |
- | 8. Error messages obtained: | + | 8. Requests that produce the errors (so that we can reproduce the issue): |
- | 9. Requests that produce the errors (so that we can reproduce the issue): | + | 9. Time interval (UTC time) during which these errors have occurred: |
- | 10. Time interval (UTC time) during which these errors have occurred: | + | |
We will try to resolve your issue as soon as possible. Thank you very much and sorry for the inconvenience. | We will try to resolve your issue as soon as possible. Thank you very much and sorry for the inconvenience. | ||
Line 31: | Line 30: | ||
DIDs enable authentication, | DIDs enable authentication, | ||
- | {{ : | + | {{ : |
- | Taking the example shown in the image above. | + | Taking the example shown in the image above: |
The **@context** field defines the context in which the DID will be interpreted. In this case, it uses the W3C standard for DIDs: " | The **@context** field defines the context in which the DID will be interpreted. In this case, it uses the W3C standard for DIDs: " | ||
Line 79: | Line 78: | ||
## Use of DIDs | ## Use of DIDs | ||
- | To register a DID on the Blockchain, a POST request must be sent to the Blockchain API. This request should include the DID to be registered in the ‘Did’ header and the corresponding DID Document in the request body. If the registration is successful, the API will respond with a ‘200 OK’ status. | + | To register a DID on the Blockchain, a POST request must be sent to the Blockchain API. This request should include the DID to be registered in the ‘Did’ header and the corresponding DID Document in the request body. If the registration is successful, the API will respond with a ‘200 OK’ status. However, the DIDs will be uniquely generated by the Holder of each node, ensuring that each identity remains decentralized and unique. |
+ | |||
+ | The following can be performed as a test. | ||
#### Endpoint | #### Endpoint | ||
Line 85: | Line 86: | ||
##### 1.1 Register DID in Blockchain | ##### 1.1 Register DID in Blockchain | ||
- | - Endpoint: / | + | - **Endpoint**: / |
- | | + | - **Method**: POST |
- | Header: | + | |
- | Content-Type: | + | |
- | did: <DID Id> (where 'DID Id' is the DID id to be registered in Blockchain) | + | |
- | Body: <DID Document> | + | |
- | Description: | + | |
+ | - **Header**: | ||
+ | |||
+ | - **Content-Type**: | ||
+ | |||
+ | - **did**: ``<DID Id>`` (where 'DID Id' is the DID id to be registered in Blockchain) | ||
+ | |||
+ | - **Body**: ``<DID Document> | ||
+ | |||
+ | - **Description**: | ||
{{: | {{: | ||
Line 102: | Line 107: | ||
##### 1.2 Get DID from Blockchain | ##### 1.2 Get DID from Blockchain | ||
+ | |||
- **Endpoint**: | - **Endpoint**: | ||
Line 114: | Line 120: | ||
{{: | {{: | ||
- | ### Endpoints | + | ### Test Endpoint |
- | ### 0. CI/CD | ||
- | |||
- | #### 0.1 Decentralized Identifiers | ||
- **Endpoint**: | - **Endpoint**: | ||
Line 126: | Line 129: | ||
{{: | {{: | ||
+ | |||
+ | ### Postman Collection for DID | ||
+ | |||
+ | Please download the following code and open it using https:// | ||
+ | |||
+ | |||
+ | ```json | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | ``` |