@@ -41,7 +41,12 @@ <h4 class="panel-title title">
4141 {% for method in endpoint.allowed_methods %}
4242 < li class ="method {{ method|lower }} "> {{ method }}</ li >
4343 {% endfor %}
44- < li class ="method plug " data-toggle ="modal " data-target ="#myModal "> < i class ="fa fa-plug "> </ i > </ li >
44+ < li class ="method plug "
45+ data-toggle ="modal "
46+ data-path ="{{ endpoint.path }} "
47+ data-methods ="{{ endpoint.allowed_methods }} "
48+ data-fields ="{{ endpoint.fields }} ">
49+ < i class ="fa fa-plug "> </ i > </ li >
4550 </ ul >
4651 </ div >
4752 </ div >
@@ -83,19 +88,48 @@ <h2 class="text-center">No endpoints found for {{ query }}.</h2>
8388
8489 <!-- Modal -->
8590 <!-- Modal -->
86- < div class ="modal fade " id ="myModal " tabindex ="-1 " role ="dialog " aria-labelledby ="myModalLabel ">
87- < div class ="modal-dialog " role ="document ">
91+ < div class ="modal fade " id ="liveAPIModal " tabindex ="-1 " role ="dialog " aria-labelledby ="myModalLabel ">
92+ < div class ="modal-dialog modal-lg " role ="document ">
8893 < div class ="modal-content ">
8994 < div class ="modal-header ">
9095 < button type ="button " class ="close " data-dismiss ="modal " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
9196 < h4 class ="modal-title " id ="myModalLabel "> Modal title</ h4 >
9297 </ div >
9398 < div class ="modal-body ">
94- ...
99+
100+ < div class ="row ">
101+ < div class ="col-md-6 ">
102+
103+ < h3 > Request</ h3 >
104+ < form id ="requestForm ">
105+ < div class ="form-group ">
106+ < label for ="urlInput "> Endpoint</ label >
107+ < input type ="text " class ="form-control " id ="urlInput " placeholder ="Url ">
108+ </ div >
109+ < div class ="form-group ">
110+ < label for ="exampleInputPassword1 "> Password</ label >
111+ < input type ="password " class ="form-control " id ="exampleInputPassword1 " placeholder ="Password ">
112+ </ div >
113+ < button type ="submit " class ="btn btn-default "> Send</ button >
114+ </ form >
115+
116+
117+ </ div >
118+ < div class ="col-md-6 ">
119+ < h3 > Response</ h3 >
120+ < ul class ="list ">
121+ < li > Status Code: < span id ="responseStatusCode "> </ span > </ li >
122+ < li > Status Text: < span id ="responseStatusText "> </ span > </ li >
123+ </ ul >
124+
125+ < pre id ="responseData "> </ pre >
126+ </ div >
127+ </ div >
128+
129+
95130 </ div >
96131 < div class ="modal-footer ">
97132 < button type ="button " class ="btn btn-default " data-dismiss ="modal "> Close</ button >
98- < button type ="button " class ="btn btn-primary "> Save changes</ button >
99133 </ div >
100134 </ div >
101135 </ div >
0 commit comments