Skip to content

Commit 1aeb8f1

Browse files
Added v1.1 and v2.0 specifications (design phase)
1 parent fb498dd commit 1aeb8f1

6 files changed

Lines changed: 2218 additions & 107 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ When you want to integrate your own local data into AI Studio, you don't need an
2323
Links:
2424
- [ERI repository with example implementation in .NET / C#](https://github.com/MindWorkAI/ERI)
2525
- [Interactive documentation aka Swagger UI](swagger-ui.html)
26-
- [ERI specification](eri-specification.json), which you could use with tools like [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator).
26+
- [ERI specification](v1.0-production.json), which you could use with tools like [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator).

dist-swagger-ui/swagger-initializer.js

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1-
window.onload = function() {
1+
window.onload = function () {
22
//<editor-fold desc="Changeable Configuration Block">
33

44
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
55
window.ui = SwaggerUIBundle({
6-
url: "eri-specification.json",
7-
dom_id: '#swagger-ui',
8-
deepLinking: true,
9-
presets: [
10-
SwaggerUIBundle.presets.apis,
11-
SwaggerUIStandalonePreset
12-
],
13-
plugins: [
14-
SwaggerUIBundle.plugins.DownloadUrl
6+
urls: [
7+
{
8+
url: "v1.0-production.json",
9+
name: "v1.0-production",
10+
},
11+
{
12+
url: "v1.1-design.json",
13+
name: "v1.1-design",
14+
},
15+
{
16+
url: "v2.0-design.json",
17+
name: "v2.0-design",
18+
},
1519
],
16-
layout: "StandaloneLayout"
20+
dom_id: "#swagger-ui",
21+
deepLinking: true,
22+
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
23+
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
24+
layout: "StandaloneLayout",
1725
});
1826

1927
//</editor-fold>

swagger-ui.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<!-- HTML for static distribution bundle build -->
2-
<!DOCTYPE html>
2+
<!doctype html>
33
<html lang="en">
4-
<head>
5-
<meta charset="UTF-8">
6-
<title>EDI - (E)xternal (D)ata AP(I) for AI Studio</title>
7-
<link rel="stylesheet" type="text/css" href="dist-swagger-ui/swagger-ui.css" />
8-
<link rel="stylesheet" type="text/css" href="dist-swagger-ui/index.css" />
9-
<link rel="icon" type="image/png" href="dist-swagger-ui/favicon-32x32.png" sizes="32x32" />
10-
<link rel="icon" type="image/png" href="dist-swagger-ui/favicon-16x16.png" sizes="16x16" />
11-
</head>
4+
<head>
5+
<meta charset="UTF-8" />
6+
<title>ERI - (E)xternal (R)etrieval (I)nterface</title>
7+
<link rel="stylesheet" type="text/css" href="dist-swagger-ui/swagger-ui.css" />
8+
<link rel="stylesheet" type="text/css" href="dist-swagger-ui/index.css" />
9+
<link rel="icon" type="image/png" href="dist-swagger-ui/favicon-32x32.png" sizes="32x32" />
10+
<link rel="icon" type="image/png" href="dist-swagger-ui/favicon-16x16.png" sizes="16x16" />
11+
</head>
1212

13-
<body>
14-
<div id="swagger-ui"></div>
15-
<script src="dist-swagger-ui/swagger-ui-bundle.js" charset="UTF-8"> </script>
16-
<script src="dist-swagger-ui/swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
17-
<script src="dist-swagger-ui/swagger-initializer.js" charset="UTF-8"> </script>
18-
</body>
13+
<body>
14+
<div id="swagger-ui"></div>
15+
<script src="dist-swagger-ui/swagger-ui-bundle.js" charset="UTF-8"></script>
16+
<script src="dist-swagger-ui/swagger-ui-standalone-preset.js" charset="UTF-8"></script>
17+
<script src="dist-swagger-ui/swagger-initializer.js" charset="UTF-8"></script>
18+
</body>
1919
</html>

0 commit comments

Comments
 (0)