ic-labs / django-icekit

GLAMkit is a next-generation Python CMS by the Interaction Consortium, designed especially for the cultural sector.
http://glamkit.com
MIT License
47 stars 11 forks source link

Add API to read and write ICEkit Image data #226

Closed jmurty closed 7 years ago

jmurty commented 7 years ago

Add API endpoints to list, edit, and add data for ICEkit's Image model.

You can now access the images API at the web UI at /api/images/ when you are logged in as a user with sufficient permissions (either a super-user, or a user with change/add/delete model permissions for Image)

Use the new tokens admin at /admin/authtoken/token/ to generate opaque per-user authentication tokens, then include this token value in requests from clients outside a web browser context (i.e. which cannot or should not use standard session authentication)

Example curl commands to perform API operations with token authorisation (and assuming the token's associated user has sufficient permissions):

Side-effects on GLAMkit as a result of this work include:

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.5%) to 73.136% when pulling 26266829f94912409d7e79c3ffa76c14b51f00c4 on 212-api-for-images-collection into 23b446c4e28d040ab7d23e7ff4b0a824b8b74267 on develop.