Skip to content

Commit

Permalink
[W-15520293] server tags (#44)
Browse files Browse the repository at this point in the history
* server tags template

* 4.6.6

* _getValue and _getAmfKey, asyncApi condition

* amf-helper-mixin version updated
  • Loading branch information
NazaQuintero authored Apr 26, 2024
1 parent 2b5e3bf commit f65f439
Show file tree
Hide file tree
Showing 7 changed files with 391 additions and 321 deletions.
5 changes: 4 additions & 1 deletion demo/apis.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"async-api/async-api.yaml": "ASYNC 2.0",
"W-10881270/W-10881270.json": "ASYNC 2.0",
"exchange-experience-api/exchange-experience-api.raml": "RAML 0.8",
"multiple-servers/multiple-servers.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
"multiple-servers/multiple-servers.yaml": {
"type": "OAS 3.0",
"mime": "application/yaml"
},
"APIC-641/APIC-641.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
"APIC-711/APIC-711.raml": "RAML 1.0"
}
29 changes: 15 additions & 14 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@ class ApiDemo extends ApiDemoPage {

_apiListTemplate() {
return [
['google-drive-api', 'Google Drive'],
['exchange-experience-api', 'Exchange xAPI'],
['demo-api', 'Demo API'],
['appian-api', 'Applian API'],
['nexmo-sms-api', 'Nexmo SMS API'],
['loan-microservice', 'Loan microservice (OAS)'],
['prevent-xss', 'Prevent XSS'],
['mocking-service', 'Lots of methods'],
['no-endpoints', 'No endpoints!'],
['no-server', 'No server!'],
['multiple-servers', 'Multiple servers'],
['async-api', 'AsyncAPI'],
['APIC-641', 'APIC-641'],
['W-10881270', 'W-10881270'],
["google-drive-api", "Google Drive"],
["exchange-experience-api", "Exchange xAPI"],
["demo-api", "Demo API"],
["appian-api", "Applian API"],
["nexmo-sms-api", "Nexmo SMS API"],
["loan-microservice", "Loan microservice (OAS)"],
["prevent-xss", "Prevent XSS"],
["mocking-service", "Lots of methods"],
["no-endpoints", "No endpoints!"],
["no-server", "No server!"],
["multiple-servers", "Multiple servers"],
["async-api", "AsyncAPI"],
["APIC-641", "APIC-641"],
["W-10881270", "W-10881270"],
["async-api26", "AsyncAPI26"],
].map(
([file, label]) => html`
<anypoint-item data-src="${file}-compact.json">${label}</anypoint-item>
Expand Down
1 change: 1 addition & 0 deletions demo/model.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const generator = require('@api-components/api-model-generator');

generator('./demo/apis.json')
.then(() => console.log('Models created'))
.catch((cause) => console.error(cause));
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@api-components/api-summary",
"description": "A summary view for an API base on AMF data model",
"version": "4.6.5",
"version": "4.6.6",
"license": "Apache-2.0",
"main": "index.js",
"module": "index.js",
Expand All @@ -27,7 +27,7 @@
"dependencies": {
"@advanced-rest-client/arc-marked": "^1.1.2",
"@advanced-rest-client/markdown-styles": "^3.1.5",
"@api-components/amf-helper-mixin": "^4.5.14",
"@api-components/amf-helper-mixin": "4.5.25",
"@api-components/api-method-documentation": "^5.2.5",
"@api-components/http-method-label": "^3.1.4",
"@api-components/raml-aware": "^3.0.0",
Expand Down
Loading

0 comments on commit f65f439

Please sign in to comment.