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:35] 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. |
- | To retrieve a DID Document from the Blockchain, a GET request should be made to the Blockchain API, specifying the desired DID in the ‘Did’ header. If the DID is found in the Blockchain, the response will include a ‘200 OK’ status along with the DID Document in the response body. | + | #### Endpoint |
- | + | ||
- | {{ : | + | |
- | + | ||
- | ### Endpoints | + | |
- | Folder postman contains a JSON file that can be exported to POSTMAN to test all endpoints described below: | + | |
- | ### 0. CI/CD | + | ##### 1.1 Register DID in Blockchain |
- | #### 0.1 Decentralized Identifiers | ||
- | - **Endpoint**: | ||
- | |||
- | - **Method**: GET | ||
- | |||
- | - **Description**: | ||
- | |||
- | {{ : | ||
- | |||
- | ### 1. Decentralized Identifiers | ||
- | |||
- | #### 1.1 Register DID in Blockchain | ||
- **Endpoint**: | - **Endpoint**: | ||
Line 118: | Line 100: | ||
- **Description**: | - **Description**: | ||
- | #### 1.2 Get DID from Blockchain | + | {{: |
+ | |||
+ | To retrieve a DID Document from the Blockchain, a GET request should be made to the Blockchain API, specifying the desired DID in the ‘Did’ header. If the DID is found in the Blockchain, the response will include a ‘200 OK’ status along with the DID Document in the response body. | ||
+ | |||
+ | #### Endpoint | ||
+ | |||
+ | ##### 1.2 Get DID from Blockchain | ||
- **Endpoint**: | - **Endpoint**: | ||
Line 128: | Line 117: | ||
- **Description**: | - **Description**: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ### Test Endpoint | ||
+ | |||
+ | - **Endpoint**: | ||
+ | |||
+ | - **Method**: GET | ||
+ | |||
+ | - **Description**: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ### Postman Collection for DID | ||
+ | |||
+ | Please download the following code and open it using https:// | ||
+ | |||
+ | |||
+ | ```json | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | }, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ] | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | } | ||
+ | ``` |