Commit 2247d4b7 authored by Vitali Stupin's avatar Vitali Stupin
Browse files

Adding JSON link

parent d6361b55
......@@ -158,6 +158,10 @@ export class MethodsService {
return this.apiUrlBase
}
getApiUrl(): string {
return this.apiUrlBase + API_SERVICE
}
getLimit(): string {
if (this.limit == MAX_LIMIT) {
return 'all'
......
......@@ -4,7 +4,8 @@
<p [innerHTML]="'subsystemList.intro.p1' | translate"></p>
<p [innerHTML]="'subsystemList.intro.p2' | translate"></p>
<p [innerHTML]="'subsystemList.intro.p3' | translate"></p>
<p [innerHTML]="'subsystemList.intro.p4' | translate"></p>
<p [innerHTML]="'subsystemList.intro.p4' | translate:{'jsonUrl': getApiUrl()}"></p>
<p [innerHTML]="'subsystemList.intro.p5' | translate"></p>
<div class="alert alert-warning" role="alert" *ngIf="message">
{{message}}
......
......@@ -102,4 +102,8 @@ export class SubsystemListComponent implements OnInit, OnDestroy {
switchInstance(instance: string): void {
this.router.navigateByUrl('/' + instance)
}
getApiUrl(): string {
return this.methodsService.getApiUrl()
}
}
......@@ -8,7 +8,8 @@
"p1": "This catalogue is generated by making getWsdl requests from RIA's Monitoring Security Server to all X-tee subsystems.",
"p2": "Subsystems with the <span class=\"badge badge-secondary\">Empty</span> icon have no X-Tee services available.",
"p3": "Subsystems with the <span class=\"badge badge-danger\">Error</span> icon either could not be reached by RIA's Monitoring Security Server or there was some other error during the request.",
"p4": "Support: <a href=\"mailto:help@ria.ee\">help@ria.ee</a>"
"p4": "Catalogue in JSON form: <a href=\"{{jsonUrl}}\">JSON</a>",
"p5": "Support: <a href=\"mailto:help@ria.ee\">help@ria.ee</a>"
},
"selectInstance": "Select X-tee instance"
},
......@@ -30,6 +31,6 @@
"allSystemsBtn": "Show all subsystems",
"statusErrorInfo": "Subsystem either could not be reached by RIA's Monitoring Security Server or there was some other error during the request.",
"statusEmptyInfo": "Subsystem does not have any methods.",
"moreMethods": "{{count}} more..."
"moreMethods": "{{count}} more ..."
}
}
\ No newline at end of file
......@@ -8,7 +8,8 @@
"p1": "Antud kataloog on genereeritud saates getWsdl päringud RIA monitooringu turvaserverist kõigi X-tee alamsüsteemide pihta.",
"p2": "Alamsüsteemid <span class=\"badge badge-secondary\">Tühi</span> ikooniga ei oma X-tee teenuseid.",
"p3": "Alamsüsteemid <span class=\"badge badge-danger\">Viga</span> ikooniga kas ei ole ligipääsetavad RIA monitooringu turvaserveri poolt, või päringu tegemisel ilmnes muu viga.",
"p4": "Kasutajatugi: <a href=\"mailto:help@ria.ee\">help@ria.ee</a>"
"p4": "Kataloog JSON kujul: <a href=\"{{jsonUrl}}\">JSON</a>",
"p5": "Kasutajatugi: <a href=\"mailto:help@ria.ee\">help@ria.ee</a>"
},
"selectInstance": "Vali X-tee instants"
},
......@@ -30,6 +31,6 @@
"allSystemsBtn": "Näita kõiki alamsüsteeme",
"statusErrorInfo": "Alamsüsteem kas ei ole ligipääsetav RIA monitooringu turvaserveri poolt, või päringu tegemisel ilmnes muu viga.",
"statusEmptyInfo": "Alamsüsteem ei oma X-tee teenuseid.",
"moreMethods": "veel {{count}}..."
"moreMethods": "veel {{count}} ..."
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment