-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
29 lines (24 loc) · 1.37 KB
/
main.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<h2>Hellow World!</h2>
<div class="row">
<div class="btn-group col-lg-3">
<button type="button" class="btn btn-default" ng-class="{'active': httpMethod == 'GET'}" ng-click="httpMethod = 'GET'">GET</button>
<button type="button" class="btn btn-default" ng-class="{'active': httpMethod == 'POST'}" ng-click="httpMethod = 'POST'">POST</button>
<button type="button" class="btn btn-default" ng-class="{'active': httpMethod == 'PUT'}" ng-click="httpMethod = 'PUT'">PUT</button>
<button type="button" class="btn btn-default" ng-class="{'active': httpMethod == 'DELETE'}" ng-click="httpMethod = 'DELETE'">DELETE</button>
</div>
<div class="input-group col-lg-8">
<span class="input-group-addon">http://</span>
<input type="text" class="form-control" placeholder="Hostname" ng-model="url">
<span class="input-group-addon">/</span>
<input type="text" class="form-control" placeholder="Path" ng-model="path">
</div>
<a href="" id="submitButton" class="btn btn-success" data-loading-text="Loading..." ng-click="fireACall()">Submit</a>
<div class="col-lg-6 post-object">
<p class="lead">Request data:</p>
<textarea class="form-control" rows="6" ng-model="postData"></textarea>
</div>
<div class="col-lg-6 post-object">
<p class="lead">Response:</p>
<textarea class="form-control" disabled rows="6">{{result | json}}</textarea>
</div>
</div>