-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
43 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var utils = require('../utils'); | ||
|
||
exports.swagger = true; | ||
exports.swaggerUrl = true; | ||
exports.login = true; | ||
exports.desc = "Host your docs on ReadMe"; | ||
exports.category = "services"; | ||
|
||
exports.run = function(config, info) { | ||
console.log(""); | ||
console.log("Success! ".green + "You can now access your Swagger from the following publicly sharable URL:"); | ||
console.log(""); | ||
console.log(" " + info.swaggerUrl + "?docs"); | ||
console.log(""); | ||
console.log("To use in ReadMe for documentation, follow the URL for setup information."); | ||
|
||
utils.open(info.swaggerUrl + "?docs", info); | ||
|
||
process.exit(); | ||
}; |
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ exports.run = function(config, info) { | |
console.log("GRANT PUSH ACCESS".cyan); | ||
console.log("Run the following command to add them (must match their GitHub email):"); | ||
console.log(""); | ||
console.log(" $ oai add [email protected]".grey); | ||
console.log(" $ oas add [email protected]".grey); | ||
console.log(""); | ||
console.log(""); | ||
|
||
|
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 |
---|---|---|
@@ -1,27 +1,29 @@ | ||
{ | ||
"author": "ReadMe <[email protected]> (http://readme.io)", | ||
"name": "oai", | ||
"name": "oas", | ||
"description": "A collection of Open API Initiative (Swagger) tools", | ||
"bin": { | ||
"oai": "index.js" | ||
"oas": "index.js" | ||
}, | ||
"tags": [ | ||
"api", | ||
"apis", | ||
"swagger", | ||
"open api initiative", | ||
"open api spec", | ||
"oai", | ||
"oas", | ||
"apidoc", | ||
"microservice", | ||
"documentation" | ||
], | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/readmeio/oai.git" | ||
"url": "git://github.com/readmeio/oas.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/readmeio/oai/issues" | ||
"url": "https://github.com/readmeio/oas/issues" | ||
}, | ||
"main": "index.js", | ||
"dependencies": { | ||
|
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