forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable generation of swagger definitions for functions/sources/sinks (a…
…pache#3871) * Enable generation of swagger definitions for functions/sources/sinks * Added more changes to make it backwards compatible * Add logic to server functions rest api * Deleted swagger file since its supposed to be generated. Also added some missing python packages for building * Added back deleted file * Fix comments * Seperated out sources and sinks * More changes to collapse all rest apis into one dropdown
- Loading branch information
Showing
15 changed files
with
179 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const React = require('react'); | ||
const CompLibrary = require('../../core/CompLibrary.js'); | ||
|
||
const Container = CompLibrary.Container; | ||
const siteConfig = require(`${process.cwd()}/siteConfig.js`); | ||
|
||
class FunctionsRestApi extends React.Component { | ||
render() { | ||
const swaggerUrl = `${siteConfig.baseUrl}swagger/swaggerfunctions.json` | ||
|
||
return ( | ||
<div className="pageContainer"> | ||
<Container className="mainContainer documentContainer postContainer" > | ||
<redoc spec-url={`${swaggerUrl}`} lazy-rendering="true"></redoc> | ||
<script src="https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js"></script> | ||
</Container> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
module.exports = FunctionsRestApi; |
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,22 @@ | ||
const React = require('react'); | ||
const CompLibrary = require('../../core/CompLibrary.js'); | ||
|
||
const Container = CompLibrary.Container; | ||
const siteConfig = require(`${process.cwd()}/siteConfig.js`); | ||
|
||
class SinkRestApi extends React.Component { | ||
render() { | ||
const swaggerUrl = `${siteConfig.baseUrl}swagger/swaggersink.json` | ||
|
||
return ( | ||
<div className="pageContainer"> | ||
<Container className="mainContainer documentContainer postContainer" > | ||
<redoc spec-url={`${swaggerUrl}`} lazy-rendering="true"></redoc> | ||
<script src="https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js"></script> | ||
</Container> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
module.exports = SinkRestApi; |
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,22 @@ | ||
const React = require('react'); | ||
const CompLibrary = require('../../core/CompLibrary.js'); | ||
|
||
const Container = CompLibrary.Container; | ||
const siteConfig = require(`${process.cwd()}/siteConfig.js`); | ||
|
||
class SourceRestApi extends React.Component { | ||
render() { | ||
const swaggerUrl = `${siteConfig.baseUrl}swagger/swaggersource.json` | ||
|
||
return ( | ||
<div className="pageContainer"> | ||
<Container className="mainContainer documentContainer postContainer" > | ||
<redoc spec-url={`${swaggerUrl}`} lazy-rendering="true"></redoc> | ||
<script src="https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js"></script> | ||
</Container> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
module.exports = SourceRestApi; |
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