{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/765","labels_url":"https://api.github.com/repos/Mashape/kong/issues/765/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/765/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/765/events","html_url":"https://github.com/Mashape/kong/issues/765","id":120081701,"number":765,"title":"strip_request_path not being updated using PUT /apis ","user":{"login":"PGBI","id":6191583,"avatar_url":"https://avatars.githubusercontent.com/u/6191583?v=3","gravatar_id":"","url":"https://api.github.com/users/PGBI","html_url":"https://github.com/PGBI","followers_url":"https://api.github.com/users/PGBI/followers","following_url":"https://api.github.com/users/PGBI/following{/other_user}","gists_url":"https://api.github.com/users/PGBI/gists{/gist_id}","starred_url":"https://api.github.com/users/PGBI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PGBI/subscriptions","organizations_url":"https://api.github.com/users/PGBI/orgs","repos_url":"https://api.github.com/users/PGBI/repos","events_url":"https://api.github.com/users/PGBI/events{/privacy}","received_events_url":"https://api.github.com/users/PGBI/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-03T02:32:20Z","updated_at":"2015-12-03T02:47:16Z","closed_at":null,"body":"I have an API with strip_request_path being true:\r\n```\r\n{\r\n  \"upstream_url\": \"http://my-super-api.com\",\r\n  \"id\": \"f289b20a-a0a4-4c88-ccfb-e1429e933400\",\r\n  \"strip_request_path\": true,\r\n  \"name\": \"test\",\r\n  \"created_at\": 1449109519000,\r\n  \"request_path\": \"/path\"\r\n}\r\n```\r\n\r\nWhen I'm making the following request to update strip_request_path to false:\r\n> PUT /apis\r\n```\r\n{\r\n  \"upstream_url\": \"http://my-super-api.com\",\r\n  \"id\": \"f289b20a-a0a4-4c88-ccfb-e1429e933400\",\r\n  \"strip_request_path\": false,\r\n  \"name\": \"test\",\r\n  \"request_path\": \"/path\"\r\n}\r\n```\r\n\r\nI get the following response which seems ok:\r\n```\r\n{\r\n  \"upstream_url\": \"http://my-super-api.com\",\r\n  \"id\": \"f289b20a-a0a4-4c88-ccfb-e1429e933400\",\r\n  \"strip_request_path\": false,\r\n  \"name\": \"test\",\r\n  \"request_path\": \"/path\"\r\n}\r\n```\r\n\r\nHowever, when hitting `GET /apis/f289b20a-a0a4-4c88-ccfb-e1429e933400` again I still get a response with strip_request_path being true.\r\n\r\n\r\nFirst I thought it was the same kind of problem as #720 but I tested with the `next` branch and still get the same problem."},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/161499900","html_url":"https://github.com/Mashape/kong/issues/765#issuecomment-161499900","issue_url":"https://api.github.com/repos/Mashape/kong/issues/765","id":161499900,"user":{"login":"PGBI","id":6191583,"avatar_url":"https://avatars.githubusercontent.com/u/6191583?v=3","gravatar_id":"","url":"https://api.github.com/users/PGBI","html_url":"https://github.com/PGBI","followers_url":"https://api.github.com/users/PGBI/followers","following_url":"https://api.github.com/users/PGBI/following{/other_user}","gists_url":"https://api.github.com/users/PGBI/gists{/gist_id}","starred_url":"https://api.github.com/users/PGBI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PGBI/subscriptions","organizations_url":"https://api.github.com/users/PGBI/orgs","repos_url":"https://api.github.com/users/PGBI/repos","events_url":"https://api.github.com/users/PGBI/events{/privacy}","received_events_url":"https://api.github.com/users/PGBI/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T02:47:16Z","updated_at":"2015-12-03T02:47:16Z","body":"After 3 minutes and a few kong restart, strip_request_path is still true.\r\n\r\nI also just tested again with PATCH, the change was correctly taken into account."}}