{"action":"created","issue":{"url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/146","repository_url":"https://api.github.com/repos/mevdschee/php-crud-api","labels_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/146/comments","events_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/146/events","html_url":"https://github.com/mevdschee/php-crud-api/issues/146","id":193443289,"number":146,"title":"Only API specification returned","user":{"login":"josephlau","id":3964684,"avatar_url":"https://avatars.githubusercontent.com/u/3964684?v=3","gravatar_id":"","url":"https://api.github.com/users/josephlau","html_url":"https://github.com/josephlau","followers_url":"https://api.github.com/users/josephlau/followers","following_url":"https://api.github.com/users/josephlau/following{/other_user}","gists_url":"https://api.github.com/users/josephlau/gists{/gist_id}","starred_url":"https://api.github.com/users/josephlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephlau/subscriptions","organizations_url":"https://api.github.com/users/josephlau/orgs","repos_url":"https://api.github.com/users/josephlau/repos","events_url":"https://api.github.com/users/josephlau/events{/privacy}","received_events_url":"https://api.github.com/users/josephlau/received_events","type":"User","site_admin":false},"labels":[{"id":175489583,"url":"https://api.github.com/repos/mevdschee/php-crud-api/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":{"login":"mevdschee","id":1288217,"avatar_url":"https://avatars.githubusercontent.com/u/1288217?v=3","gravatar_id":"","url":"https://api.github.com/users/mevdschee","html_url":"https://github.com/mevdschee","followers_url":"https://api.github.com/users/mevdschee/followers","following_url":"https://api.github.com/users/mevdschee/following{/other_user}","gists_url":"https://api.github.com/users/mevdschee/gists{/gist_id}","starred_url":"https://api.github.com/users/mevdschee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mevdschee/subscriptions","organizations_url":"https://api.github.com/users/mevdschee/orgs","repos_url":"https://api.github.com/users/mevdschee/repos","events_url":"https://api.github.com/users/mevdschee/events{/privacy}","received_events_url":"https://api.github.com/users/mevdschee/received_events","type":"User","site_admin":false},"assignees":[{"login":"mevdschee","id":1288217,"avatar_url":"https://avatars.githubusercontent.com/u/1288217?v=3","gravatar_id":"","url":"https://api.github.com/users/mevdschee","html_url":"https://github.com/mevdschee","followers_url":"https://api.github.com/users/mevdschee/followers","following_url":"https://api.github.com/users/mevdschee/following{/other_user}","gists_url":"https://api.github.com/users/mevdschee/gists{/gist_id}","starred_url":"https://api.github.com/users/mevdschee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mevdschee/subscriptions","organizations_url":"https://api.github.com/users/mevdschee/orgs","repos_url":"https://api.github.com/users/mevdschee/repos","events_url":"https://api.github.com/users/mevdschee/events{/privacy}","received_events_url":"https://api.github.com/users/mevdschee/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-12-05T09:03:47Z","updated_at":"2016-12-05T11:49:05Z","closed_at":null,"body":"I put your api.php on my server, it did generated the specification document and list the tables on MySQL, but when I tried the GET url, it returns return the same specification document."},"comment":{"url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/comments/264835088","html_url":"https://github.com/mevdschee/php-crud-api/issues/146#issuecomment-264835088","issue_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/146","id":264835088,"user":{"login":"josephlau","id":3964684,"avatar_url":"https://avatars.githubusercontent.com/u/3964684?v=3","gravatar_id":"","url":"https://api.github.com/users/josephlau","html_url":"https://github.com/josephlau","followers_url":"https://api.github.com/users/josephlau/followers","following_url":"https://api.github.com/users/josephlau/following{/other_user}","gists_url":"https://api.github.com/users/josephlau/gists{/gist_id}","starred_url":"https://api.github.com/users/josephlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephlau/subscriptions","organizations_url":"https://api.github.com/users/josephlau/orgs","repos_url":"https://api.github.com/users/josephlau/repos","events_url":"https://api.github.com/users/josephlau/events{/privacy}","received_events_url":"https://api.github.com/users/josephlau/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T11:49:04Z","updated_at":"2016-12-05T11:49:04Z","body":"Hi Maurits,\r\n\r\nI wonder if I need to configure the nginx, and I suspect the web server redirect all url back to api.php.\r\n\r\nI’m totally new to php and nginx, can you help me to look the my web server configuration as below.\r\n\r\nThank Joseph\r\n\r\n\r\nserver {\r\n        listen 80 default_server;\r\n        listen [::]:80 default_server;\r\n        listen 443 default_server ssl;\r\n        listen [::]:443 default_server ssl;\r\n\r\n        server_name _;\r\n\r\n        location ~ ^/volume(?:X|USB|SATA|Gluster)?\\d+/ {\r\n            internal;\r\n\r\n            root /;\r\n\r\n            include app.d/x-accel.*.conf;\r\n            include conf.d/x-accel.*.conf;\r\n        }\r\n\r\n        include app.d/www.*.conf;\r\n        include app.d/alias.*.conf;\r\n        include /usr/syno/share/nginx/conf.d/www.*.conf;\r\n        include conf.d/www.*.conf;\r\n\r\n        location = /webman/pingpong.php {\r\n            rewrite /webman/pingpong.php /webman/pingpong.cgi break;\r\n\r\n            root /usr/syno/synoman;\r\n            include scgi_params;\r\n            scgi_pass synoscgi;\r\n        }\r\n\r\n        location = /webdefault/images/logo.jpg {\r\n            alias /usr/syno/share/nginx/logo.jpg;\r\n        }\r\n\r\n        error_page 403 404 500 502 503 504 @error_page;\r\n\r\n        location @error_page {\r\n            root /usr/syno/share/nginx;\r\n            rewrite (.*) /error.html break;\r\n        }\r\n\r\n        location ^~ /.well-known/acme-challenge {\r\n            root /var/lib/letsencrypt;\r\n            default_type text/plain;\r\n        }\r\n\r\n        include app.d/.location.webstation.conf*;\r\n\r\n        location ~ ^/$ {\r\n\r\n            if ($scheme = https) {\r\n                rewrite / https://$host:5001/ redirect;\r\n            }\r\n\r\n            rewrite / http://$host:5000/ redirect;\r\n\r\n        }\r\n    }\r\n\r\n\r\nFrom: Maurits van der Schee [mailto:notifications@github.com]\r\nSent: Monday, December 5, 2016 7:04 PM\r\nTo: mevdschee/php-crud-api <php-crud-api@noreply.github.com>\r\nCc: Joseph Lau <joseph@dualloy.com>; Author <author@noreply.github.com>\r\nSubject: Re: [mevdschee/php-crud-api] Only API specification returned (#146)\r\n\r\n\r\nThank you for your message. Try to debug the script. See:\r\n\r\nhttps://github.com/mevdschee/php-crud-api#debugging\r\n\r\n—\r\nYou are receiving this because you authored the thread.\r\nReply to this email directly, view it on GitHub<https://github.com/mevdschee/php-crud-api/issues/146#issuecomment-264826097>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADx_DFw8Fz6RPrpSWvcn_YGOuXRrBUG8ks5rE--2gaJpZM4LD_br>.\r\n"}}
{"actor":{"display_login":"josephlau"}}