Skip to content

Commit

Permalink
fix: replace prism-agent to cloud-agent in the OAS examples
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
  • Loading branch information
yshyn-iohk committed May 7, 2024
1 parent 68518a3 commit f0616b1
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ object DocModels {
.servers(
List(
Server(url = "http://localhost:8085", description = Some("Local Prism Agent")),
Server(url = "http://localhost/prism-agent", description = Some("Local Prism Agent with APISIX proxy")),
Server(url = "http://localhost/cloud-agent", description = Some("Local Cloud Agent with APISIX proxy")),
Server(
url = "https://k8s-dev.atalaprism.io/prism-agent",
url = "https://k8s-dev.atalaprism.io/cloud-agent",
description = Some("Prism Agent on the Staging Environment")
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ object ConnectionsPage {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/connections?offset=10&limit=10"
example = "/cloud-agent/connections?offset=10&limit=10"
)

object pageOf
Expand All @@ -70,14 +70,14 @@ object ConnectionsPage {
extends Annotation[String](
description =
"An optional string field containing the URL of the next page of results. If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/connections?offset=20&limit=10"
example = "/cloud-agent/connections?offset=20&limit=10"
)

object previous
extends Annotation[String](
description =
"An optional string field containing the URL of the previous page of results. If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/connections?offset=0&limit=10"
example = "/cloud-agent/connections?offset=0&limit=10"
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ object EntityResponse {
object self
extends Annotation[String](
description = "The `self` link of the entity.",
example = "http://localhost:8080/prism-agent/iam/entities/00000000-0000-0000-0000-000000000000"
example = "http://localhost:8080/cloud-agent/iam/entities/00000000-0000-0000-0000-000000000000"
)

object id
Expand Down Expand Up @@ -103,7 +103,7 @@ object EntityResponse {

val Example = EntityResponse(
kind = "Entity",
self = "/prism-agent/iam/entities/00000000-0000-0000-0000-000000000000",
self = "/cloud-agent/iam/entities/00000000-0000-0000-0000-000000000000",
id = UUID.fromString("00000000-0000-0000-0000-000000000000"),
name = "John Doe",
walletId = UUID.fromString("00000000-0000-0000-0000-000000000000"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,27 @@ object EntityResponsePage {
object self
extends Annotation[String](
description = "A string field containing the URL of the current API endpoint",
example = "/prism-agent/schema-registry/schemas?skip=10&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=10&limit=10"
)

object pageOf
extends Annotation[String](
description = "A string field indicating the type of resource that the contents field contains",
example = "/prism-agent/schema-registry/schemas"
example = "/cloud-agent/schema-registry/schemas"
)

object next
extends Annotation[String](
description = "An optional string field containing the URL of the next page of results. " +
"If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/schema-registry/schemas?skip=20&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=20&limit=10"
)

object previous
extends Annotation[String](
description = "An optional string field containing the URL of the previous page of results. " +
"If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/schema-registry/schemas?skip=0&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=0&limit=10"
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ object CreateIssueCredentialRecordRequest {
|Note that this parameter only applies when the offer is of type 'JWT'.
|""".stripMargin,
example = Some(
"https://agent-host.com/prism-agent/schema-registry/schemas/d9569cec-c81e-4779-aa86-0d5994d82676/schema"
"https://agent-host.com/cloud-agent/schema-registry/schemas/d9569cec-c81e-4779-aa86-0d5994d82676/schema"
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,27 @@ object IssueCredentialRecordPage {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/issue-credentials/records?offset=10&limit=10"
example = "/cloud-agent/issue-credentials/records?offset=10&limit=10"
)

object pageOf
extends Annotation[String](
description = "A string field indicating the type of resource that the contents field contains.",
example = "/prism-agent/issue-credentials/records"
example = "/cloud-agent/issue-credentials/records"
)

object next
extends Annotation[String](
description =
"An optional string field containing the URL of the next page of results. If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/issue-credentials/records?offset=20&limit=10"
example = "/cloud-agent/issue-credentials/records?offset=20&limit=10"
)

object previous
extends Annotation[String](
description =
"An optional string field containing the URL of the previous page of results. If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/issue-credentials/records?offset=0&limit=10"
example = "/cloud-agent/issue-credentials/records?offset=0&limit=10"
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ object CredentialDefinitionResponse {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/credential-definition-registry/schemas/0527aea1-d131-3948-a34d-03af39aba8b4"
example = "/cloud-agent/credential-definition-registry/schemas/0527aea1-d131-3948-a34d-03af39aba8b4"
)

object kind
Expand Down Expand Up @@ -187,7 +187,7 @@ object CredentialDefinitionResponse {
extends Annotation[Option[String]](
description = "The unique identifier of the schema used for this credential definition.",
example =
Some("https://agent-host.com/prism-agent/schema-registry/schemas/d9569cec-c81e-4779-aa86-0d5994d82676")
Some("https://agent-host.com/cloud-agent/schema-registry/schemas/d9569cec-c81e-4779-aa86-0d5994d82676")
)

object authored
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,27 @@ object CredentialDefinitionResponsePage {
object self
extends Annotation[String](
description = "A string field containing the URL of the current API endpoint",
example = "/prism-agent/credential-definition-registry/definitions?skip=10&limit=10"
example = "/cloud-agent/credential-definition-registry/definitions?skip=10&limit=10"
)

object pageOf
extends Annotation[String](
description = "A string field indicating the type of resource that the contents field contains",
example = "/prism-agent/credential-definition-registry/definitions"
example = "/cloud-agent/credential-definition-registry/definitions"
)

object next
extends Annotation[String](
description = "An optional string field containing the URL of the next page of results. " +
"If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/credential-definition-registry/definitions?skip=20&limit=10"
example = "/cloud-agent/credential-definition-registry/definitions?skip=20&limit=10"
)

object previous
extends Annotation[String](
description = "An optional string field containing the URL of the previous page of results. " +
"If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/credential-definition-registry/definitions?skip=0&limit=10"
example = "/cloud-agent/credential-definition-registry/definitions?skip=0&limit=10"
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ object CredentialSchemaResponse {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/schema-registry/schemas/0527aea1-d131-3948-a34d-03af39aba8b4"
example = "/cloud-agent/schema-registry/schemas/0527aea1-d131-3948-a34d-03af39aba8b4"
)
object kind
extends Annotation[String](
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,27 +64,27 @@ object CredentialSchemaResponsePage {
object self
extends Annotation[String](
description = "A string field containing the URL of the current API endpoint",
example = "/prism-agent/schema-registry/schemas?skip=10&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=10&limit=10"
)

object pageOf
extends Annotation[String](
description = "A string field indicating the type of resource that the contents field contains",
example = "/prism-agent/schema-registry/schemas"
example = "/cloud-agent/schema-registry/schemas"
)

object next
extends Annotation[String](
description = "An optional string field containing the URL of the next page of results. " +
"If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/schema-registry/schemas?skip=20&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=20&limit=10"
)

object previous
extends Annotation[String](
description = "An optional string field containing the URL of the previous page of results. " +
"If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/schema-registry/schemas?skip=0&limit=10"
example = "/cloud-agent/schema-registry/schemas?skip=0&limit=10"
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ object VerificationPolicyResponse {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/verification/policies/0527aea1-d131-3948-a34d-03af39aba8b4"
example = "/cloud-agent/verification/policies/0527aea1-d131-3948-a34d-03af39aba8b4"
)

object kind
Expand Down Expand Up @@ -229,7 +229,7 @@ object VerificationPolicyResponse {
}

val example = VerificationPolicyResponse(
self = "/prism-agent/verification/policies",
self = "/cloud-agent/verification/policies",
kind = "VerificationPolicy",
id = UUID.fromString("0527aea1-d131-3948-a34d-03af39aba8b4"),
nonce = 0,
Expand Down Expand Up @@ -286,7 +286,7 @@ object VerificationPolicyResponsePage {
object self
extends Annotation[String](
description = "The URL that uniquely identifies the resource being returned in the response.",
example = "/prism-agent/verification/policies?name=Trusted&offset=0&limit=10"
example = "/cloud-agent/verification/policies?name=Trusted&offset=0&limit=10"
)

object kind
Expand All @@ -298,21 +298,21 @@ object VerificationPolicyResponsePage {
object pageOf
extends Annotation[String](
description = "A string field indicating the type of resource that the contents field contains",
example = "/prism-agent/verification/policies"
example = "/cloud-agent/verification/policies"
)

object next
extends Annotation[String](
description = "An optional string field containing the URL of the next page of results. " +
"If the API response does not contain any more pages, this field should be set to None.",
example = "/prism-agent/verification/policies?skip=20&limit=10"
example = "/cloud-agent/verification/policies?skip=20&limit=10"
)

object previous
extends Annotation[String](
description = "An optional string field containing the URL of the previous page of results. " +
"If the API response is the first page of results, this field should be set to None.",
example = "/prism-agent/verification/policies?skip=0&limit=10"
example = "/cloud-agent/verification/policies?skip=0&limit=10"
)
object contents
extends Annotation[Seq[VerificationPolicyResponse]](
Expand All @@ -323,11 +323,11 @@ object VerificationPolicyResponsePage {
}

val example = VerificationPolicyResponsePage(
self = "/prism-agent/verification/policies?name=Trusted&offset=0&limit=10",
self = "/cloud-agent/verification/policies?name=Trusted&offset=0&limit=10",
kind = "VerificationPolicyPage",
pageOf = "/prism-agent/verification/policies",
next = Some("/prism-agent/verification/policies?skip=20&limit=10"),
previous = Some("/prism-agent/verification/policies?skip=0&limit=10"),
pageOf = "/cloud-agent/verification/policies",
next = Some("/cloud-agent/verification/policies?skip=20&limit=10"),
previous = Some("/cloud-agent/verification/policies?skip=0&limit=10"),
contents = List(VerificationPolicyResponse.example)
)
}
Expand Down

0 comments on commit f0616b1

Please sign in to comment.