{"action":"opened","issue":{"url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues/342","repository_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin","labels_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues/342/comments","events_url":"https://api.github.com/repos/zfcampus/zf-apigility-admin/issues/342/events","html_url":"https://github.com/zfcampus/zf-apigility-admin/issues/342","id":157968591,"number":342,"title":"Error fetching authentication types","user":{"login":"diogodomanski","id":3011678,"avatar_url":"https://avatars.githubusercontent.com/u/3011678?v=3","gravatar_id":"","url":"https://api.github.com/users/diogodomanski","html_url":"https://github.com/diogodomanski","followers_url":"https://api.github.com/users/diogodomanski/followers","following_url":"https://api.github.com/users/diogodomanski/following{/other_user}","gists_url":"https://api.github.com/users/diogodomanski/gists{/gist_id}","starred_url":"https://api.github.com/users/diogodomanski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diogodomanski/subscriptions","organizations_url":"https://api.github.com/users/diogodomanski/orgs","repos_url":"https://api.github.com/users/diogodomanski/repos","events_url":"https://api.github.com/users/diogodomanski/events{/privacy}","received_events_url":"https://api.github.com/users/diogodomanski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-01T17:54:54Z","updated_at":"2016-06-01T17:54:54Z","closed_at":null,"body":"I started a new ZF2 project (following the steps described at [Zend Skeleton Application page](https://github.com/zendframework/ZendSkeletonApplication)). After that, I added Apigility to this project (following the steps described at [Apigility Documentation](https://apigility.org/documentation/recipes/apigility-in-an-existing-zf2-application)). Everything worked fine.\r\n\r\nSo I opened the admin interface, created an authentication adapter and a new API. The problem is that when I select this API to edit it, an error message is shown (Error fetching authentication types).\r\n\r\nI inspected the ajax request (to /apigility/api/auth-type), and I realized that the response is the following JSON:\r\n`{\"status\":406,\"title\":\"Not Acceptable\",\"describedBy\":\"http:\\/\\/www.w3.org\\/Protocols\\/rfc2616\\/rfc2616-sec10.html\",\"detail\":\"Your request could not be resolved to an acceptable representation.\"}`\r\n\r\nThe request had the following parameters:\r\n```\r\nContent-Type: application/problem+json\r\nAccept: application/vnd.apigility.v2+json\r\n```\r\n\r\nDoes anyone know what am I doing wrong?"}}
{"actor":{"display_login":"diogodomanski"}}