Skip to content

Commit

Permalink
Add button on swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
mrin9 committed Oct 21, 2018
1 parent a54e952 commit 784cd14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ java -jar ./web-api/target/modules/web-api-1.0.0.jar
```

##### Once the App is running
App Component | URLs
--- | ---
Access the web app | http:https://localhost:8080
URL for REST APIs | http:https://localhost:8080/api
URL for API Docs | http:https://localhost:8080/api-docs/index.html
App Component | URLs
--- | ---
URL for the web app | http:https://localhost:8080 or http:https://localhost:8080/ui/index.html
URL for API Docs | http:https://localhost:8080/api-docs/index.html
BaseURL for REST APIs| http:https://localhost:8080/api

## Backers
Help me to host this app on AWS or Google-Cloud, for everyone to checkout the app.
Expand Down
7 changes: 4 additions & 3 deletions web-api/src/main/webapp/api-docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,12 @@
<input placeholder="User Name" id="sonic_username" name="username" type="text" value="admin" list="users" style="width:150px;vertical-align: middle;"/>
<datalist id="users">
<option value="admin">
<option value="[email protected]">
<option value="[email protected]">
<option value="customer">
<option value="support">
</datalist>
<input placeholder="Password" id="sonic_password" name="password" type="password" value="admin" style="width:75px;vertical-align: middle;"/>
<input placeholder="Password" id="sonic_password" name="password" type="admin" value="admin" style="width:75px;vertical-align: middle;"/>
<button id="loginBtn" type="button" class="header__btn" style="border:0; color:white; cursor:pointer" onclick="login()">Login</button>
<button id="backBtn" type="button" class="header__btn" style="border:0; color:white; cursor:pointer" onclick="window.location=(window.location.origin+'/ui/index.html#login')">To App</button>
<!-- END Added by Mrin -->
</form>
</div>
Expand Down
3 changes: 1 addition & 2 deletions web-ui/src/views/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
<el-button class="sw-orange" size="small" @click="userName='support';password='support'" :loading="disableLogin">SUPPORT</el-button>
</div>
<div class="sw-login-as-buttons sw-row-width">
<el-button style="width:135px" class="sw-gray" size="small" @click="win.location=(win.location.origin+'/api-docs/index.html')">API DOCS</el-button>
<el-button style="width:135px" class="sw-gray" size="small" @click="userName='customer';password='customer'">DB WEB CONSOLE</el-button>
<el-button style="flex:1" class="sw-gray" size="small" @click="win.location=(win.location.origin+'/api-docs/index.html')">API DOCS</el-button>
</div>

</div>
Expand Down

0 comments on commit 784cd14

Please sign in to comment.