Skip to content

Latest commit

 

History

History
1138 lines (410 loc) · 12.4 KB

API.md

File metadata and controls

1138 lines (410 loc) · 12.4 KB

snimay

General notes

诗尼曼API

API Details

Activities

活动

Activities

活动列表

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/activities?sortby=createTime&order=desc&pageindex=1&pagesize=12

Activities/:_id

活动详情

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/activities/58c748205e91bc30c8ebe4ff

Activities

新增活动

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/activities

Activities/:_id

更新活动

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/activities/58c748205e91bc30c8ebe4ff

Activities:/_id

删除活动

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/activities/58c748205e91bc30c8ebe4ff

Banners

首页通栏广告

Banners

首页通栏列表

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/banners?sortby=createTime&order=desc&pageindex=1&pagesize=12

Banners/:_id

首页通栏详情

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/banners/58c64e4fc5d9002439849641

Banners

新增首页通栏

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/banners

Banners/:_id

修改首页通栏

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/banners

Banners/:_id

删除首页通栏

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/banners/58c74fa82c3cab33716c1f74

Categories

类别

Categories

类别列表

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/categories

Categories/:_id

类别详情

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/categories/586c5ac48fc4b61b883393df

Categories

新增类别(一般不使用)

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/Categories

Categories/:_id

修改类别(一般不使用)

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/Categories/586c5ac48fc4b61b883393df

Categories/:_id

删除类别(一般不使用)

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/categories/58c5fe19ca53ad0d957b014a

Consults

用户咨询

Consults

用户资讯列表

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/consults?sortby=createTime&order=desc&pageindex=1&pagesize=12

Consults/:id

用户咨询详情

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/consults/58c752f44f3b4a34b9fd8443

Consults

新增用户咨询

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/consults

Consults/:id

修改用户咨询

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/consults/58c752f44f3b4a34b9fd8443

Consults/:id

删除用户资讯

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/consults/58c752f44f3b4a34b9fd8443

Matches

配套家具

Matches

配套家具列表

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/matches?sortby=createTime&order=desc&pageindex=1&pagesize=12

Matches/:_id

配套家具详情

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/matches/58c64e4fc5d9002439849652

Matches

新增配套家具

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/matches

Matches/:_id

修改配套家具

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/matches/58c64e4fc5d9002439849652

Matches:/_id

删除配套家具

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/matches/58c631a578887e1a655a3c70

Modes

定制家具

Modes

定制家具列表

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/modes?sortby=createTime&order=desc&pageindex=1&pagesize=12

Modes/:_id

定制家具详情

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/modes/58c759a5bd333437f991533d

Modes

新增定制家具

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/modes

Modes/:_id

修改定制家具

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/modes/58c631a578887e1a655a3c70

Modes:/_id

删除定制家具

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/modes/58c631a578887e1a655a3c70

Productors

产品体验

Products

产品体验列表

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/products?sortby=createTime&order=desc&pageindex=1&pagesize=12

Products/:id

产品体验详情

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/products/58c64e4fc5d9002439849646

Products

新增产品体验

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/products

Products/:_id

修改产品体验

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/products/58c631a578887e1a655a3c70

Products/:_id

删除产品体验

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/products/58c631a578887e1a655a3c70

Selectors

多条件筛选

Selectors/Heads/:cid/:_id

多条件筛选头部字段详情

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/selectors/heads/1/58c64e4fc5d9002439849638

Selectors/Heads/:cid

多条件筛选列表

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/selectors/heads/1

Selectors/Heads/:cid

新增多条件筛选

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/selectors/heads/1

Selectors/Heads/:_id

修改多条件筛选

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/selectors/heads/58c642c4d640221d7d734790

Selectors/Heads/:_id

删除多条件筛选

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/selectors/heads/58c64e4fc5d9002439849638

Selectors/Bodys/:_id/:_sid

多条件筛选下级内容详情

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/selectors/bodys/58c64e4fc5d9002439849638/586c5ac48fc4b61b123393df

Selectors/Bodys/:_id

多条件筛选下级内容列表

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/selectors/bodys/58c64e4fc5d9002439849638

Selectors/Bodys/:_id

新增多条件筛选内容

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/selector/bodys/586c5ac48fc4b61b113393df

Selectors/Bodys/:_id/:_sid

修改多条件筛选下级内容

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/selector/bodys/58c64e4fc5d9002439849638/58c64f004b0f6024b5151272

Selectors/Bodys/:_id/:_sid

删除多调价筛选下级内容

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/selectors/bodys/58c64e4fc5d9002439849638

Signin

登录

signin

登录

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/signin

Users

管理员用户

Users

用户列表

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/users

Users/:_id

用户详情

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/users/58c64e4fc5d9002439849637

Users

新增用户

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/users

Users/:_id

修改用户

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/users/58c75c75bd333437f991533e

Users/:_id

删除用户

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/users/58c75c75bd333437f991533e

Websites

WebSites

获取网站配置

Request

MethodGET
URLhttps://snimay.herokuapp.com/api/v1/websites

WebSites

新增网站配置(一般不调用)

Request

MethodPOST
URLhttps://snimay.herokuapp.com/api/v1/websites

WebSites/:_id

修改网站配置

Request

MethodPUT
URLhttps://snimay.herokuapp.com/api/v1/websites/58c64e56c5d9002439849658

WebSites/:_id

删除网站配置(一般不调用)

Request

MethodDELETE
URLhttps://snimay.herokuapp.com/api/v1/websites/58c64e56c5d9002439849658