mirror of
https://github.com/OpenBankProject/API-Explorer.git
synced 2026-02-06 10:47:23 +00:00
feature/Tweak Request Header Box
This commit is contained in:
parent
cd98f15aa9
commit
e658e848a2
@ -477,10 +477,10 @@ WIP to add comments on resource docs. This code copied from Sofit.
|
||||
val requestHeader = customRequestHeader.trim.isEmpty match {
|
||||
case true => Nil
|
||||
case false =>
|
||||
customRequestHeader.split("::").map(_.trim).map {
|
||||
customRequestHeader.split(":::").map(_.trim).map {
|
||||
i =>
|
||||
val key = i.split(":").toList.head
|
||||
val value = i.split(":").toList.reverse.head
|
||||
val key = i.split("::").toList.head
|
||||
val value = i.split("::").toList.reverse.head
|
||||
Header(key, value)
|
||||
}.toList
|
||||
}
|
||||
|
||||
@ -385,7 +385,7 @@
|
||||
|
||||
<div name="example_request_header" id="example_request_header" style="display: block;">
|
||||
<!-- It is populated at render (but it can be edited manually) -->
|
||||
<input type="text" name="request_header_input" class="default-input" placeholder="Request Header (Header1:Value1::Header2:Value2)">
|
||||
<input type="text" name="request_header_input" class="default-input" placeholder="Request Header (Header1::Value1:::Header2::Value2)">
|
||||
</div>
|
||||
<div name="example_request_body" id="example_request_body" style="display: block;">
|
||||
<input name="example_request_body_input" class="default-input" placeholder="JSON body to POST or PUT">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user