Trying to add the kong-uma-rs plugin to the mockbin API previously added
curl -i -X POST --url http://localhost:8001/apis/mockbin/plugins/ --data 'name=kong-uma-rs' --data "config.oxd_host=localhost" --data "config.oxd_port=8099" --data "config.uma_server_host=http://lablws02a.ile.montreal.qc.ca" --data "config.protection_document={\"resources\":[{\"path\":\"/document\",\"conditions\":[{\"httpMethods\":[\"GET\"],\"scopes\":[\"http://photoz.example.com/dev/actions/view\"]}]}]}"
=======================================================
I got the 500 Internal Server Error
HTTP/1.1 500 Internal Server Error
Date: Tue, 13 Dec 2016 18:22:21 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Server: kong/0.9.5
{"message":"An unexpected error occurred"}