三十天攻略RESTful API (使用codeigniter3 + mysql)做出一個短網址產生器!
還有怎麼用nginx、php-fpm、MySQL、PostMan
**假設你會基礎的PHP+HTML了
--等等繼續寫
規劃路由 /application/config/routes.php $route['(:any)'] = 'url/redirect/$1'; //要放在最...
設定路由 /application/config/routes.php $route['api/v1/url/(:any)']['put'] = '/api/v...
設定路由 application/config/routes.php $route['api/v1/url/(:any)']['DELETE'] = 'api/...
設定路由 application/config/routes.php $route['api/v1/url/(:any)']['GET'] = 'api/v1/...
常用的HTTP回應碼 2xx 正常 200 OK 201 Created 已新增 202 Accepted 已接受 204 No Content 無內容 3...