Skip to content

Commit

Permalink
docs(vc api tutorials): v1 and localhost fixes (#179)
Browse files Browse the repository at this point in the history
* docs(tutorials): add /v1 to URLs

* docs(tutorials): replace localhost with placeholder
  • Loading branch information
jrhender authored Sep 25, 2023
1 parent e217744 commit 1e30222
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/did`
`{VC API base url}/v1/did`

**HTTP Verb**

Expand Down Expand Up @@ -175,7 +175,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/vc-api/exchanges`
`{VC API base url}/v1/vc-api/exchanges`

**HTTP Verb**

Expand Down Expand Up @@ -359,7 +359,7 @@ Having configured the exchange, the Verifier must then ask the resident to prese
"outOfBandInvitation": {
"type": "https://example.com/out-of-band/vc-api-exchange",
"body": {
"url": "http://localhost:3000/vc-api/exchanges/<FILL WITH YOUR EXCHANGE ID>"
"url": "{VC API base url}/v1/vc-api/exchanges/<FILL WITH YOUR EXCHANGE ID>"
}
}
}
Expand All @@ -373,7 +373,7 @@ Send the request as described below.
**Request URL**

If using the Postman collection request, fill in the `exchangeId` param to be the value used for the exchange Id by the Verifier.
`{VC API base url}/vc-api/exchanges/{exchange id}`
`{VC API base url}/v1/vc-api/exchanges/{exchange id}`

**HTTP Verb**

Expand Down Expand Up @@ -645,7 +645,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/vc-api/presentations/prove`
`{VC API base url}/v1/vc-api/presentations/prove`

**HTTP Verb**

Expand Down Expand Up @@ -877,7 +877,7 @@ Send the request as described below.

In the request params, use the `transactionId` and `exchangeId` from the `serviceEndpoint` in the VP Request.

`{VC API base url}/vc-api/exchanges/{exchangeId}/{transactionId}`
`{VC API base url}/v1/vc-api/exchanges/{exchangeId}/v1/{transactionId}`

**HTTP Verb**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ They can do this transmission by encoding the json in a QR code and displaying t
"outOfBandInvitation": {
"type": "https://energyweb.org/out-of-band-invitation/vc-api-exchange",
"body": {
"url": "http://localhost:3000/vc-api/exchanges/{THE EXCHANGE ID FROM THE PREVIOUS STEP}"
"url": "{VC API base url}/v1/vc-api/exchanges/{THE EXCHANGE ID FROM THE PREVIOUS STEP}"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ To do this, navigate to the `Vc Api Controller create Exchange` under `vc-api/ex

**Request URL**

`{VC API base url}/vc-api/exchanges`
`{VC API base url}/v1/vc-api/exchanges`

**HTTP Verb**

Expand Down Expand Up @@ -172,7 +172,7 @@ They can do this transmission by encoding the json in a QR code and displaying t
"type": "https://energyweb.org/out-of-band-invitation/vc-api-exchange",
"body": {
"credentialTypeAvailable": "PermanentResidentCard",
"url": "http://localhost:3000/vc-api/exchanges/{THE EXCHANGE ID FROM THE PREVIOUS STEP}"
"url": "{VC API base url}/v1/vc-api/exchanges/{THE EXCHANGE ID FROM THE PREVIOUS STEP}"
}
}
}
Expand All @@ -187,7 +187,7 @@ Send the request as described below.
**Request URL**

If using the collection request, fill in the `exchangeid` param to be the exchange ID used in the first step.
`{VC API base url}/vc-api/exchanges/{exchangeId}`
`{VC API base url}/v1/vc-api/exchanges/{exchangeId}`

**HTTP Verb**

Expand Down Expand Up @@ -222,7 +222,7 @@ This is providing the location at which we can continue the credential exchange
"service": [
{
"type": "MediatedHttpPresentationService2021",
"serviceEndpoint": "http://localhost:3000/exchanges/resident-card-issuance-82793/55fb5bc5-4f5f-40c8-aa8d-f3a1991637fc"
"serviceEndpoint": "{VC API base url}/v1/exchanges/resident-card-issuance-82793/55fb5bc5-4f5f-40c8-aa8d-f3a1991637fc"
}
]
}
Expand All @@ -245,7 +245,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/did`
`{VC API base url}/v1/did`

**HTTP Verb**

Expand Down Expand Up @@ -295,7 +295,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/vc-api/presentations/prove/authentication`
`{VC API base url}/v1/vc-api/presentations/prove/authentication`

**HTTP Verb**

Expand Down Expand Up @@ -357,15 +357,15 @@ The response should be a verifiable presentation, similar to the one below.
#### 1.6 [Resident] Continue exchange by submitting the DID Auth proof

Continue the exchange using the DIDAuth presentation.
To do this, open the `Vc Api Controller continue Exchange` request in the `vc-api/exchanges/{exchange id}/{transaction id}` folder.
To do this, open the `Vc Api Controller continue Exchange` request in the `vc-api/exchanges/{exchange id}/v1/{transaction id}` folder.

Send the request as described below.

**Request URL**

In the request params, use the `transactionId` from the `serviceEndpoint` in the VP Request and `exchangeId` as the unique exchange ID configured in the initial step.

`{VC API base url}/vc-api/exchanges/{EXCHANGE ID}/{TRANSACTION ID}`
`{VC API base url}/v1/vc-api/exchanges/{EXCHANGE ID}/{TRANSACTION ID}`

**HTTP Verb**

Expand All @@ -388,7 +388,7 @@ This response indicates that the client attempt to continue the exchange again (
"service": [
{
"type": "MediatedHttpPresentationService2021",
"serviceEndpoint": "http://localhost:3000/vc-api/exchanges/{EXCHANGE ID}/27ce6175-bab7-4a1b-84b2-87cf87ad9163"
"serviceEndpoint": "{VC API base url}/v1/vc-api/exchanges/{EXCHANGE ID}/27ce6175-bab7-4a1b-84b2-87cf87ad9163"
}
]
}
Expand Down Expand Up @@ -426,7 +426,7 @@ An example of the expected POST body received in the request bucket is:
"service": [
{
"type": "MediatedHttpPresentationService2021",
"serviceEndpoint": "http://localhost:3000/exchanges/resident-card-issuance-82793/55fb5bc5-4f5f-40c8-aa8d-f3a1991637fc"
"serviceEndpoint": "{VC API base url}/v1/vc-api/exchanges/resident-card-issuance-82793/55fb5bc5-4f5f-40c8-aa8d-f3a1991637fc"
}
]
}
Expand Down Expand Up @@ -470,7 +470,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/did`
`{VC API base url}/v1/did`

**HTTP Verb**

Expand Down Expand Up @@ -521,7 +521,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/credentials/issue`
`{VC API base url}/v1/credentials/issue`

**HTTP Verb**

Expand Down Expand Up @@ -623,7 +623,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/vc-api/presentations/prove`
`{VC API base url}/v1/vc-api/presentations/prove`

**HTTP Verb**

Expand Down Expand Up @@ -778,7 +778,7 @@ Send the request as described below.

Use the same `exchangeId` and `transactionId` as the path variables as in the "Continue Exchange" step.

`{VC API base url}/vc-api/exchanges/{exchange id}/{transaction id}/review`
`{VC API base url}/v1/vc-api/exchanges/{exchange id}/{transaction id}/review`

**HTTP Verb**

Expand Down Expand Up @@ -869,7 +869,7 @@ Resend the request.

Use the same `exchangeId` and `transactionId` as used in step [1.6 [Resident] Continue exchange by submitting the DID Auth proof](#16-resident-continue-exchange-by-submitting-the-did-auth-proof)

`{VC API base url}/vc-api/exchanges/{exchange id}/{transaction id}`
`{VC API base url}/v1/vc-api/exchanges/{exchange id}/{transaction id}`

**HTTP Verb**

Expand Down Expand Up @@ -956,7 +956,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/vc-api/exchanges`
`{VC API base url}/v1/vc-api/exchanges`

**HTTP Verb**

Expand Down Expand Up @@ -1045,7 +1045,7 @@ Having configured the exchange, the Verifier must then ask the resident to prese
"outOfBandInvitation": {
"type": "https://example.com/out-of-band/vc-api-exchange",
"body": {
"url": "http://localhost:3000/vc-api/exchanges/<FILL WITH YOUR EXCHANGE ID>"
"url": "{VC API base url}/v1/vc-api/exchanges/<FILL WITH YOUR EXCHANGE ID>"
}
}
}
Expand All @@ -1059,7 +1059,7 @@ Send the request as described below.
**Request URL**

If using the Postman collection request, fill in the `exchangeId` param to be the value used for the exchange Id by the Verifier.
`{VC API base url}/vc-api/exchanges/{exchange id}`
`{VC API base url}/v1/vc-api/exchanges/{exchange id}`

**HTTP Verb**

Expand Down Expand Up @@ -1115,7 +1115,7 @@ A similar json should be returned in the response body:
"service":[
{
"type":"UnmediatedHttpPresentationService2021",
"serviceEndpoint":"https://vc-api-dev.energyweb.org/vc-api/exchanges/34712646/b38b7c65-f0d7-4d00-b026-f2704ff716cc"
"serviceEndpoint":"https://vc-api-dev.energyweb.org/v1/vc-api/exchanges/34712646/b38b7c65-f0d7-4d00-b026-f2704ff716cc"
}
]
}
Expand Down Expand Up @@ -1144,7 +1144,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/vc-api/presentations/prove`
`{VC API base url}/v1/vc-api/presentations/prove`

**HTTP Verb**

Expand Down Expand Up @@ -1319,7 +1319,7 @@ Send the request as described below.

In the request params, use the `transactionId` and `exchangeId` from the `serviceEndpoint` in the VP Request.

`{VC API base url}/vc-api/exchanges/{exchangeId}/{transactionId}`
`{VC API base url}/v1/vc-api/exchanges/{exchangeId}/v1/{transactionId}`

**HTTP Verb**

Expand Down Expand Up @@ -1382,7 +1382,7 @@ For reference, the callback notification that would have been received in a conf
"service":[
{
"type":"UnmediatedHttpPresentationService2021",
"serviceEndpoint":"https://vc-api-dev.energyweb.org/vc-api/exchanges/34712646/b38b7c65-f0d7-4d00-b026-f2704ff716cc"
"serviceEndpoint":"https://vc-api-dev.energyweb.org/v1/vc-api/exchanges/34712646/b38b7c65-f0d7-4d00-b026-f2704ff716cc"
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions apps/vc-api/docs/tutorials/key-export-import-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/did`
`{VC API base url}/v1/did`

**HTTP Verb**

Expand Down Expand Up @@ -89,7 +89,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/key/{keyId}`
`{VC API base url}/v1/key/{keyId}`

**HTTP Verb**

Expand Down Expand Up @@ -131,7 +131,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/key`
`{VC API base url}/v1/key`

**HTTP Verb**

Expand Down Expand Up @@ -176,7 +176,7 @@ Send the request as described below.

**Request URL**

`{VC API base url}/did`
`{VC API base url}/v1/did`

**HTTP Verb**

Expand Down

0 comments on commit 1e30222

Please sign in to comment.