{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10059","repository_url":"https://api.github.com/repos/gitlabhq/gitlabhq","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10059/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10059/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10059/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/10059","id":137628930,"number":10059,"title":"API responding to POST requests as if they're GET requests","user":{"login":"iamsteadman","id":3310393,"avatar_url":"https://avatars.githubusercontent.com/u/3310393?v=3","gravatar_id":"","url":"https://api.github.com/users/iamsteadman","html_url":"https://github.com/iamsteadman","followers_url":"https://api.github.com/users/iamsteadman/followers","following_url":"https://api.github.com/users/iamsteadman/following{/other_user}","gists_url":"https://api.github.com/users/iamsteadman/gists{/gist_id}","starred_url":"https://api.github.com/users/iamsteadman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamsteadman/subscriptions","organizations_url":"https://api.github.com/users/iamsteadman/orgs","repos_url":"https://api.github.com/users/iamsteadman/repos","events_url":"https://api.github.com/users/iamsteadman/events{/privacy}","received_events_url":"https://api.github.com/users/iamsteadman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T16:54:08Z","updated_at":"2016-03-01T17:11:21Z","closed_at":null,"body":"## Summary\r\n\r\nIn 8.5.1, `POST /api/v3/projects` (with a valid `name` field) returns a list of all projects in JSON with a 200 response code, therefore acting like a `GET` request.\r\n\r\n## Steps to reproduce\r\n\r\nPost to `/api/v3/projects` with a `name` parameter.\r\n\r\n## Expected behaviour\r\n\r\nI imagine the API should return either the single project just created, or an array containing just that project.\r\n\r\n---\r\n\r\nWe've got GitLab installed on an Ubuntu DigitalOcean box. My colleague updated it a few days ago and prior to his doing so, the python-gitlab project worked fine. Since the update I ditched python-gitlab in an effort to try and figure out what had changed, so have just been using Requests. I've tried posting the data in different formats, but always get the same response.\r\n\r\nLet me know if you need more detail."},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/190818423","html_url":"https://github.com/gitlabhq/gitlabhq/issues/10059#issuecomment-190818423","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/10059","id":190818423,"user":{"login":"rymai","id":1168,"avatar_url":"https://avatars.githubusercontent.com/u/1168?v=3","gravatar_id":"","url":"https://api.github.com/users/rymai","html_url":"https://github.com/rymai","followers_url":"https://api.github.com/users/rymai/followers","following_url":"https://api.github.com/users/rymai/following{/other_user}","gists_url":"https://api.github.com/users/rymai/gists{/gist_id}","starred_url":"https://api.github.com/users/rymai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rymai/subscriptions","organizations_url":"https://api.github.com/users/rymai/orgs","repos_url":"https://api.github.com/users/rymai/repos","events_url":"https://api.github.com/users/rymai/events{/privacy}","received_events_url":"https://api.github.com/users/rymai/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T17:11:21Z","updated_at":"2016-03-01T17:11:21Z","body":"@iamsteadman I cannot reproduce this issue using the following CURL command:\r\n\r\n```sh\r\ncurl -X POST -H \"PRIVATE-TOKEN: [REDACTED]\" -F \"name=hello-world\" \"https://gitlab.com/api/v3/projects\"\r\n```\r\n\r\nA new project is created and returned as JSON in the response."}}