rest-api

1、project對象json

一、建立對象post

post /project
request-body:: jsonurl

二、刪除對象對象

delete /project/101
request-body:: 無get

三、修改對象request

put /project/101
request-body:: json查詢

四、查詢對象sort

獲取對象列表
get /project?page=0&size=5&sort=comp_id,asc
request-body:: 無vi

查詢單個對象
get /project/101
request-body:: 無co

2、project下的其餘對象

一、建立對象
post /project/{projectId}/device
request-body:: json

二、刪除對象
delete /project/{projectId}/device/101
http-method:: delete

三、修改對象
put /project/{projectId}/device/101
request-body:: json

四、查詢對象

獲取對象列表
get /project/{projectId}/device?page=0&size=5&sort=comp_id,asc
request-url::/project/{projectId}/device?name=xx&type=yy
http-method:: get
request-body:: 無

查詢單個對象request-url::/project/{projectId}/device/101http-method:: getrequest-body:: 無

相關文章
相關標籤/搜索