This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A user can start a com.vmware.xenon.swagger.SwaggerDescriptorService on a host and a swagger 2.0 description is served by default on /discovery/swagger. * add new xenon-swagger module containing a single stateless service * add enumValues to PropertyDescription describing an ENUM * add kind to PropertyDescription describing a PODO * add latest release of Swagger-UI as custom ui of swagger * documentKind is used to refer to swagger Models * fix bug in ServiceDocumentDescription.Builder that assigns a kind of java:lang:Number to Number-typed fields (like in NumericRange) TODOs: * read swagger annotations to provide more details and docs: currently not possible withoug peeking into the service classes * figure out if a service support PATCH/OPTIONS/POST...: not possible without peeking into the service class and looking for overriden handler methods * Swagger 2.0 cannot fully describe a service interface, track this: OAI/OpenAPI-Specification#182 Change-Id: I9d59dd63187c769994fe8b8ce3143e119dc3cdde
- Loading branch information
Showing
61 changed files
with
32,938 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Building swagger-ui | ||
1. clone https://github.com/swagger-api/swagger-ui and checkout a stable tag | ||
2. follow instructions for building swagger-ui | ||
3. copy all files produced by the build from dist/ to *ui/com/vmware/xenon/swagger/SwaggerDescriptorService* | ||
4. edit the index.html by adding this lines after "$(function () {" | ||
|
||
```javascript | ||
var url = window.location.search.match(/url=([^&]+)/); | ||
if (url && url.length > 1) { | ||
url = decodeURIComponent(url[1]); | ||
} else { | ||
var loc = window.location; | ||
url = loc.protocol + "//" + loc.host + "/discovery/swagger"; | ||
} | ||
``` |
Oops, something went wrong.