Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
polterguy committed Jan 9, 2024
1 parent bdd4f2c commit b3888cc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/files/system/endpoints/openapi.get.hl
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ unwrap:x:./*/.result/**
.result
openapi:3.1.0
info
title:AINIRO Magic Cloudlet
description:Allows you to interact with your Magic cloudlet
title:AINIRO.IO Magic Cloud Cloudlet
description:Interact with your cloudlet
version:x:@version
servers
.
Expand All @@ -53,7 +53,7 @@ endpoints.list
// Iterating through each public endpoint and adding to above [paths].
for-each:x:@endpoints.list/*

// Verifying endpoint is public.
// Verifying endpoint is public, or user provided [system] as true.
if
and
neq:x:@.dp/#/*/type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ <h3 mat-dialog-title>OpenAPI Specification for endpoints</h3>

<div mat-dialog-content>

<div class="text-muted mb-2">
<div class="text-muted mb-3">
{{data.url}}
</div>

Expand All @@ -17,7 +17,13 @@ <h3 mat-dialog-title>OpenAPI Specification for endpoints</h3>
<button
mat-button
(click)="copy()">
Copy
Copy JSON
</button>

<button
mat-button
(click)="copyUrl()">
Copy URL
</button>

<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export class OpenAPISpecifictionDialogComponent {
copy() {

this.clipBoard.copy(this.data.json);
this.generalService.showFeedback('You can find the content on your clipboard', 'successMessage');
this.generalService.showFeedback('You can find the JSON content on your clipboard', 'successMessage');
}

copyUrl() {

this.clipBoard.copy(this.data.url);
this.generalService.showFeedback('You can find the URL to the OpenAPI specification on your clipboard', 'successMessage');
}
}

0 comments on commit b3888cc

Please sign in to comment.