empowerhack / DrawMyLife-Service

API and Admin system for the Draw My Life initiative - Volunteers: check README and GitHub Projects to get started.
https://github.com/empowerhack/DrawMyLife-Service/projects
MIT License
13 stars 0 forks source link

[#161] Update, secure & namespace the DML Drawings API #174

Closed krissy closed 6 years ago

krissy commented 7 years ago

Addresses issue: #161

What this does

Check issue #161 for more details on the below tasks

Bonus things addressed:

Examples

cURL request with token auth:

  $ curl http://localhost:3000/api/drawings.hal -H 'Authorization: Token token="cd1facb479c09638967c2dcf78d22d5b"'

Screenshots

Singular endpoint:

screen shot 2017-07-02 at 22 41 52

Collection endpoint, page 1:

screen shot 2017-07-02 at 22 43 45 screen shot 2017-07-02 at 22 43 57

Collection endpoint, page 2:

screen shot 2017-07-02 at 22 45 01