Remove content-type from example
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
86f826b3e4
commit
a0cba2f04c
|
@ -62,7 +62,7 @@
|
||||||
<h4>Calling as an API:</h4>
|
<h4>Calling as an API:</h4>
|
||||||
If you set the <code>Content-Type</code> request header to <code>application/json</code> the response will return as a JSON array of all found feed URLs. If no feeds are found an empty array will be returned and the response status code will be <strong>404</strong>. If multiple feeds are found all will be returned in the array with a response status code of <strong>300</strong>.
|
If you set the <code>Content-Type</code> request header to <code>application/json</code> the response will return as a JSON array of all found feed URLs. If no feeds are found an empty array will be returned and the response status code will be <strong>404</strong>. If multiple feeds are found all will be returned in the array with a response status code of <strong>300</strong>.
|
||||||
<pre><code>
|
<pre><code>
|
||||||
✨ curl -H "Content-Type: application/json" https://feed-fetcher.cluster.fun/\?url\=https://marcusnoble.co.uk
|
✨ curl https://feed-fetcher.cluster.fun/\?url\=https://marcusnoble.co.uk
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
Date: Sun, 21 Mar 2021 07:24:37 GMT
|
Date: Sun, 21 Mar 2021 07:24:37 GMT
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
Loading…
Reference in New Issue