Ticket #357 (new defect) — at Version 1

Opened 4 years ago

Last modified 4 years ago

Fix API documentation, to correct misleading HTTP_AUTHORIZATION statement.

Reported by: johnbywater Owned by: johnbywater
Priority: critical Milestone:
Component: ckan Keywords:
Cc: Repository:
Theme:

Description (last modified by johnbywater) (diff)

Sean Burlington wrote:

I recently came across a documentation issue

http://knowledgeforge.net/ckan/doc/ckan/api.html


The key should be passed in the API request header: Header Example value HTTP_AUTHORIZATION fde34a3c-b716-4c39-8dc4-881ba115c6d4


But the header name is actually just 'AUTHORIZATION'

For example to set it in PHP

curl_setopt($ch, CURLOPT_HTTPHEADER, array('AUTHORIZATION: xxxxx-xxxx-xxxx-xxxx-xxxxxxx'));

Change History

comment:1 Changed 4 years ago by johnbywater

  • Description modified (diff)
Note: See TracTickets for help on using tickets.