Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
rnd:swagger [2020/05/11 04:32] tech2admin |
rnd:swagger [2020/05/11 05:11] (current) tech2admin |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== Swagger ==== | + | ==== Swagger - API Documentation==== |
| - | - Clone the Editor | + | * Clone the Editor |
| - | - <code>git clone https://github.com/swagger-api/swagger-editor.git swagger-editor-doc</code> | + | * <code>git clone https://github.com/swagger-api/swagger-editor.git swagger-editor-doc</code> |
| - | - | + | * Install swagger UI |
| + | * <code>npm install --save swagger-ui</code> | ||
| + | * Install swagger UI distribution | ||
| + | * <code>npm install --save swagger-ui-dist</code> | ||
| + | * Copy swagger-ui-dist from node-modules to root of swagger | ||
| + | * Also create a folder call editor and copy all swagger editor files in to that | ||
| + | * In the root there will be only 2 folders | ||
| + | * editor | ||
| + | * [[https://apiwiki.widya.com.au/docs/swagger/editor/]] | ||
| + | * swagger-ui-dist | ||
| + | * [[https://apiwiki.widya.com.au/docs/swagger/swagger-ui-dist/]] | ||
| + | * Edit the Index file od=f swagger-ui-dist and update the path to json file | ||