已采納回答 / 慕圣0362214
用querystring,這貨就是用來限制查詢資源的條件比如按標(biāo)題和作者搜索 /articles?title=xxx&author=xxx
2017-10-28
200 => 'OK'
204 => 'No Content'
400=> 'Bad request'
401=> 'Unauthorized'
403=> 'Forbidden'
404=> 'Not Found'
405=> 'Method Not Allowed'
500=> 'Server Internal Error'
204 => 'No Content'
400=> 'Bad request'
401=> 'Unauthorized'
403=> 'Forbidden'
404=> 'Not Found'
405=> 'Method Not Allowed'
500=> 'Server Internal Error'
2017-10-10
難度來說還可以,API的開發(fā)可以實(shí)現(xiàn)前后臺(tái)的代碼對(duì)接,代碼規(guī)范點(diǎn)。恩差不多就是這樣,具體還是要看自己的業(yè)務(wù)邏輯,現(xiàn)在很多框架都有API開發(fā),相對(duì)來說簡(jiǎn)單很多,大家不要擔(dān)心
2017-10-04
Unexpected character (<) at position 0.
<br />
<b>Notice</b>: Undefined offset: 3 in <b>D:\phpStudy\WWW\api\restful\index.php</b> on line <b>144</b><br />
<br />
<b>Notice</b>: Undefined offset: 3 in <b>D:\phpStudy\WWW\api\restful\index.php</b> on line <b>144</b><br />
2017-09-29