add jq to curl documentation like
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<fieldset>
|
||||
<legend>Reader user</legend>
|
||||
<p><code>reader</code> / <code>reader-password</code></p>
|
||||
<p class="muted">Can read protected endpoints and use filters.</p><br>
|
||||
<p class="muted">Can read protected endpoints and use filters. I recommend having jq installed when curling</p>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="col">
|
||||
@@ -70,16 +70,16 @@
|
||||
| sed -n 's/.*"token":"\([^"]*\)".*/\1/p')
|
||||
|
||||
curl -s 'https://go-api.poc.fló.fo/api/v1/registrations?location=Tórshavn&limit=5' \
|
||||
-H "Authorization: $READER_TOKEN"
|
||||
-H "Authorization: $READER_TOKEN" | jq
|
||||
|
||||
curl -s 'https://go-api.poc.fló.fo/api/v1/registrations?gender=female&abuse_type=psychological&status=open&limit=10' \
|
||||
-H "Authorization: $READER_TOKEN"
|
||||
-H "Authorization: $READER_TOKEN" | jq
|
||||
|
||||
curl -s 'https://go-api.poc.fló.fo/api/v1/registrations?from=1989-01-01&to=1990-01-01&offset=20&limit=10' \
|
||||
-H "Authorization: $READER_TOKEN"
|
||||
-H "Authorization: $READER_TOKEN" | jq
|
||||
|
||||
curl -s 'https://go-api.poc.fló.fo/api/v1/locations' \
|
||||
-H "Authorization: $READER_TOKEN"</code></pre>
|
||||
-H "Authorization: $READER_TOKEN" | jq</code></pre>
|
||||
|
||||
<h3>CRUD user — create, update, and delete examples</h3>
|
||||
<pre><code>ADMIN_TOKEN=$(curl -s -X POST https://go-api.poc.fló.fo/login \
|
||||
|
||||
Reference in New Issue
Block a user