Implement cURL API #15
|
@ -24,4 +24,7 @@
|
||||||
|
|
||||||
.alert.blue .alert-title {
|
.alert.blue .alert-title {
|
||||||
background: #203050;
|
background: #203050;
|
||||||
|
}
|
||||||
|
.alert.green .alert-title {
|
||||||
|
background: #205030;
|
||||||
}
|
}
|
|
@ -25,7 +25,11 @@
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<div class='code'>
|
<div class='code'>
|
||||||
curl -X POST {{env.instanceurl}}/curlapi/upload -F'file=@file.txt' -F'tos_consent=on'
|
<span style='color:green'>curl</span>
|
||||||
|
<span style='color:orange'>-X POST</span>
|
||||||
|
<span style='color:darkcyan'>{{env.instanceurl}}/curlapi/upload</span>
|
||||||
|
<span style='color:orange'>-F'file=@file.txt'</span>
|
||||||
|
<span style='color:orange'>-F'tos_consent=on'</span>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
To add a password, do it like this:
|
To add a password, do it like this:
|
||||||
|
@ -34,7 +38,12 @@
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<div class='code'>
|
<div class='code'>
|
||||||
curl -X POST {{env.instanceurl}}/curlapi/upload -F'file=@file.txt' -F'filename=uwu' -F'tos_consent=on' -F'named=on'
|
<span style='color:green'>curl</span>
|
||||||
|
<span style='color:orange'>-X POST</span>
|
||||||
|
<span style='color:darkcyan'>{{env.instanceurl}}/curlapi/upload</span>
|
||||||
|
<span style='color:orange'>-F'file=@file.txt'</span>
|
||||||
|
<span style='color:orange'>-F'tos_consent=on'</span>
|
||||||
|
<span style='color:orange'>-F'named=on'</span>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
Note that the
|
Note that the
|
||||||
|
@ -45,7 +54,7 @@
|
||||||
HTML form.
|
HTML form.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="alert danger">
|
<div class="alert green">
|
||||||
<h1 class="alert-title">
|
<h1 class="alert-title">
|
||||||
Important
|
Important
|
||||||
</h1>
|
</h1>
|
||||||
|
|
Loading…
Reference in New Issue