Skip to content

Commit

Permalink
refactor: rename Well-known tag
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-mader committed Sep 21, 2024
1 parent ca2ceaf commit 5d20f17
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
13 changes: 9 additions & 4 deletions agent_api_rest/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ paths:
/.well-known/oauth-authorization-server:
get:
tags:
- Well-known
- (.well-known)
- (public)
summary: Authorization Server Metadata
description: Standard OpenID Connect discovery endpoint for authorization metadata.
Expand All @@ -29,7 +29,7 @@ paths:
/.well-known/openid-credential-issuer:
get:
tags:
- Well-known
- (.well-known)
- (public)
summary: Credential Issuer Metadata
description: Standard OpenID Connect discovery endpoint for issuer metadata.
Expand Down Expand Up @@ -218,7 +218,7 @@ paths:
tags:
- Holder
summary: Get all credentials
description: Retrieve all credentials that UniCore currently holds.
description: Retrieve all credentials that this UniCore instance currently holds.
operationId: credentials
responses:
'200':
Expand Down Expand Up @@ -300,5 +300,10 @@ components:
tags:
- name: (public)
description: A collection of endpoints that should be publicly accessible without authentication. They are used to resolve metadata or allow communication with wallets.
- name: Well-known
- name: (.well-known)
description: Well-known endpoints provide metadata about the server.
- name: Issuance
description: Issue credentials to holders that will store them in their wallets.
externalDocs:
url: https://docs.impierce.com
description: Official Documentation
2 changes: 1 addition & 1 deletion agent_api_rest/src/holder/holder/credentials/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use serde_json::json;

/// Get all credentials
///
/// Retrieve all credentials that UniCore currently holds.
/// Retrieve all credentials that this UniCore instance currently holds.
#[utoipa::path(
get,
path = "/holder/credentials",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use axum::{
#[utoipa::path(
get,
path = "/.well-known/oauth-authorization-server",
tag = "Well-known",
tag = "(.well-known)",
tags = ["(public)"],
responses(
(status = 200, description = "Successfully returns the Authorization Server Metadata", body = [AuthorizationServerMetadata])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use axum::{
#[utoipa::path(
get,
path = "/.well-known/openid-credential-issuer",
tag = "Well-known",
tag = "(.well-known)",
tags = ["(public)"],
responses(
(status = 200, description = "Successfully returns the Credential Issuer Metadata", body = [CredentialIssuerMetadata])
Expand Down
3 changes: 2 additions & 1 deletion agent_api_rest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ fn get_base_path() -> Result<String, ConfigError> {
),
tags(
(name = "(public)", description = "A collection of endpoints that should be publicly accessible without authentication. They are used to resolve metadata or allow communication with wallets."),
(name = "Well-known", description = "Well-known endpoints provide metadata about the server.")
(name = "(.well-known)", description = "Well-known endpoints provide metadata about the server."),
(name = "Issuance", description = "Issue credentials to holders that will store them in their wallets.", external_docs(description="Official Documentation", url="https://docs.impierce.com")),
)
)]
pub struct ApiDoc;
Expand Down

0 comments on commit 5d20f17

Please sign in to comment.