TripleParity / docks-api

RESTful API Server for Docks
https://tripleparity.github.io/docks-api/stack-api-spec.html
GNU General Public License v3.0
0 stars 0 forks source link

The Content-Type HTTP header is now forwarded to the Docker API #35

Closed devosray closed 6 years ago

devosray commented 6 years ago

Closes #34

curl --header "Content-Type: application/json" --request POST --data '{"name": "mahHeart"}' http://localhost:8080/docker/volumes/create

Now returns:

>  {"CreatedAt":"2018-05-08T16:59:33+02:00","Driver":"local","Labels":null,"Mountpoint":"/var/lib/docker/volumes/mahHeart/_data","Name":"mahHeart","Options":null,"Scope":"local"}

Instead of:

>  {"message":"Content-Type specified () must be 'application/json'"}
egeldenhuys commented 6 years ago

bug, ambulance, whale creates an interesting narrative!

egeldenhuys commented 6 years ago

Woah, the button did a merge!

egeldenhuys commented 6 years ago

Small fix, overriding required reviews.

Jason-vh commented 6 years ago
image

🤔

egeldenhuys commented 6 years ago

@devosray you broke travis by deleting the branch so quickly or something https://travis-ci.org/TripleParity/docks-api/builds/376420271