Commit e570c843 by 庄欣

Update ApiList

parent 47ecf988
......@@ -4,6 +4,7 @@
列表数据查询规则:要按某种条件进行查询,只需要在URL中拼接 字段=条件 ,即可,如查询被禁用的,为&is_del=1。标题默认为LIKE查询,API限制了查询字段的范围
详情数据查询关联:查询某个对象的关联对象如套系,使用sets/{id}/relation/关联1,关联2,如ID为2的关键字和分类 /sets/2/relation/keywords,category
Route::group(["prefix" => "file", 'namespace' => Provider::getNamespace("file")],function(){
//上传图片
Route::post("/{uid}/{type}","File@upload");
......@@ -20,6 +21,8 @@ Route::group(["prefix" => "user", 'namespace' => Provider::getNamespace("member"
Route::post("/apply","User@Apply");
//获取用户微信openid
Route::get("/openid/{platform?}","User@getOAuth");
//模糊搜索用户 支持使用mobile=?或nickname=? 方式,?表示字符串
Route::get("/search","User@search");
});
......@@ -41,7 +44,7 @@ Route::group(["prefix" => "article", 'namespace' => Provider::getNamespace("arti
});
Route::group(["prefix" => "works", 'namespace' => Provider::getNamespace("works")],function(){
//样片列表
//攻略列表
Route::get ("/" , "Works@index");
//改
Route::put ("/{id}" , "Works@update")->where(['id' => '\d+']);
......@@ -55,4 +58,24 @@ Route::group(["prefix" => "works", 'namespace' => Provider::getNamespace("works"
Route::put ("/{id}/hidden" , "Works@hidden")->where(['id' => '\d+']);
//显示
Route::put ("/{id}/show" , "Works@display")->where(['id' => '\d+']);
});
Route::group(["prefix" => "keywords", 'namespace' => Provider::getNamespace("keywords")],function(){
//全部关键词
Route::get ("/" , "Keywords@index");
//热门关键词
Route::get ("/hot" , "Keywords@gethot");
});
Route::group(["prefix" => "photo", 'namespace' => Provider::getNamespace("photo")],function(){
//全部选片
Route::get ("/" , "Photo@index");
//新建
Route::post("/" , "Photo@store");
//添加照片
Route::post("/{id}" , "Photo@images");
//删除照片
Route::delete("/{id}/{ids}","Photo@image");
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment