Skip to content

Commit

Permalink
fix: Correct the SeenLog list endpoints OpenAPI description (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad authored Aug 8, 2024
1 parent 08c3be9 commit f6ebd19
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
12 changes: 6 additions & 6 deletions docs/schema/V1/swagger.verified.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@
"tags": [
"Serviceowner"
],
"summary": "Gets a single dialog seen log record",
"description": "Gets a single dialog seen log record. For more information see the documentation (link TBD).",
"summary": "Gets all seen log records for a dialog",
"description": "Gets all seen log records for a dialog. For more information see the documentation (link TBD).",
"operationId": "SearchDialogSeenLogSO",
"parameters": [
{
Expand All @@ -287,7 +287,7 @@
"description": "Forbidden"
},
"200": {
"description": "Successfully returned the dialog seen log record.",
"description": "Successfully returned the dialog seen log records.",
"content": {
"application/json": {
"schema": {
Expand Down Expand Up @@ -1548,8 +1548,8 @@
"tags": [
"Enduser"
],
"summary": "Gets a single dialog seen log record",
"description": "Gets a single dialog seen log record. For more information see the documentation (link TBD).",
"summary": "Gets all seen log records for a dialog",
"description": "Gets all seen log records for a dialog. For more information see the documentation (link TBD).",
"operationId": "SearchDialogSeenLog",
"parameters": [
{
Expand All @@ -1570,7 +1570,7 @@
"description": "Forbidden"
},
"200": {
"description": "Successfully returned the dialog seen log record.",
"description": "Successfully returned the dialog seen log records.",
"content": {
"application/json": {
"schema": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ public sealed class SearchDialogSeenLogEndpointSummary : Summary<SearchDialogSee
{
public SearchDialogSeenLogEndpointSummary()
{
Summary = "Gets a single dialog seen log record";
Description = """
Gets a single dialog seen log record. For more information see the documentation (link TBD).
const string summary = "Gets all seen log records for a dialog";
Summary = summary;
Description = $"""
{summary}. For more information see the documentation (link TBD).
""";

Responses[StatusCodes.Status200OK] = Constants.SwaggerSummary.ReturnedResult.FormatInvariant("seen log record");
Responses[StatusCodes.Status200OK] = Constants.SwaggerSummary.ReturnedResult.FormatInvariant("seen log records");
Responses[StatusCodes.Status401Unauthorized] = Constants.SwaggerSummary.EndUserAuthenticationFailure;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ public sealed class SearchDialogSeenLogEndpointSummary : Summary<SearchDialogSee
{
public SearchDialogSeenLogEndpointSummary()
{
Summary = "Gets a single dialog seen log record";
Description = """
Gets a single dialog seen log record. For more information see the documentation (link TBD).
const string summary = "Gets all seen log records for a dialog";
Summary = summary;
Description = $"""
{summary}. For more information see the documentation (link TBD).
""";

Responses[StatusCodes.Status200OK] = Constants.SwaggerSummary.ReturnedResult.FormatInvariant("seen log record");
Responses[StatusCodes.Status200OK] = Constants.SwaggerSummary.ReturnedResult.FormatInvariant("seen log records");
}
}

0 comments on commit f6ebd19

Please sign in to comment.