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
[WARNING] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Build Order: | |
[INFO] | |
[INFO] XXXXXXXXXXX | |
[INFO] commons | |
[INFO] XXXXXXXX-api | |
[INFO] auth-api | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ |
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
//... | |
window.swaggerUi = new SwaggerUi({ | |
url: url, | |
dom_id: "swagger-ui-container", | |
authorizations: { | |
someName: new SwaggerClient.PasswordAuthorization("", "<username>", "<password>") | |
} | |
// ........... |
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
//... | |
window.swaggerUi = new SwaggerUi({ | |
url: '', | |
spec: { | |
// The json contents of your spec file | |
} | |
dom_id: "swagger-ui-container", | |
// ........... |
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
swagger: '2.0' | |
info: | |
title: Uber API 2 | |
description: Move your app forward with the Uber API | |
version: 1.0.0 | |
host: api.uber.com | |
schemes: | |
- https | |
basePath: /v1 | |
produces: |
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
swagger: '2.0' | |
info: | |
version: '9.9.9' | |
title: Just some spec |
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
function addAuth(obj) { | |
// Here we add an authorization, we need to add a securityType to each operation that should get this auth. | |
// See: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-definitions-object | |
// And see petstore for an example, where they have a security names 'api_key' | |
window.swaggerUi.api.clientAuthorizations.add("my_auth_name", window.SwaggerClient.ApiKeyAuthorization('header name', value, 'header') | |
} | |
window.swaggerUi = new SwaggerUi({ | |
url: 'swagger.json', | |
responseInterceptor: function() { |
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
Draft for Comment | |
Name: API Discovery Format | |
Informal Name: APIs.json | |
Authors: Kin Lane, Steven Willmott, Nicolas Grenie, Bruno Pedro | |
Date: 29/04/2015 | |
Location: http://apicommons.org/apisjson/apisjson_v0.15.txt | |
A Simple Format for Publishing API Meta Data on the Web | |
Table of Contents |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Swagger UI</title> | |
<link rel="icon" type="image/png" href="images/favicon-32x32.png" sizes="32x32" /> | |
<link rel="icon" type="image/png" href="images/favicon-16x16.png" sizes="16x16" /> | |
<link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/> | |
<link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/> | |
<link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/> | |
<link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/> |
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
_,add8ba, | |
,d888888888b, | |
d8888888888888b _,ad8ba,_ | |
d888888888888888) ,d888888888b, | |
I8888888888888888 _________ ,8888888888888b | |
__________`Y88888888888888P"""""""""""baaa,__ ,888888888888888, | |
,adP"""""""""""9888888888P""^ ^""Y8888888888888888I | |
,a8"^ ,d888P"888P^ ^"Y8888888888P' |