Skip to content

Commit 4e123f5

Browse files
author
Renato Juaçaba Neto
committed
Resolver on swagger ui
1 parent 0b39091 commit 4e123f5

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

pages/api.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ description: Details of identifiers.org REST API endpoints
2121

2222
The rest of the API service infrastructure is divided in two different areas: [Resolution API](#resolution) and [Registry API](#registry).
2323

24-
Swagger UI is available at: <{{ "/swagger-ui" | absolute_url }}>. Use selector on the top-right to switch between services.
24+
25+
<div class="infobox">
26+
<i class="icon icon-common icon-new text-secondary size-300 mr-2"></i>
27+
<p class="mb-0">
28+
Swagger UI is available at: <a href="../swagger-ui">https://docs.identifiers.org/swagger-ui</a>. <br/>
29+
Use selector on the top-right to switch between services.
30+
</p>
31+
</div>
2532

2633

2734

static/css/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@
111111
color: #0086b4;
112112
}
113113

114+
.text-secondary {
115+
color: #777;
116+
}
117+
114118
.text-warning {
115119
color: #e9b400;
116120
}

swagger-ui/swagger-initializer.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ window.onload = function() {
44
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
55
window.ui = SwaggerUIBundle({
66
urls: [{
7-
name: "Resolver service",
7+
name: "Resolver",
88
url: "https://resolver.api.identifiers.org/v3/api-docs"
9+
}, {
10+
name: "Registry",
11+
url: "https://registry.api.identifiers.org/v3/api-docs"
912
}],
1013
dom_id: '#swagger-ui',
1114
deepLinking: false,
@@ -17,7 +20,7 @@ window.onload = function() {
1720
SwaggerUIBundle.plugins.DownloadUrl
1821
],
1922
layout: "StandaloneLayout",
20-
supportedSubmitMethods: []
23+
supportedSubmitMethods: [] // This disables the 'try it out' feature which doesn't work with the resolver
2124
});
2225

2326
//</editor-fold>

0 commit comments

Comments
 (0)