POST api/resource/addresourceclass
保存资源和班级关联
Request Information
URI Parameters
None.
Body Parameters
ResourceClassDtoName | Description | Type | Additional information |
---|---|---|---|
ResourceId |
资源Id |
globally unique identifier |
None. |
ClassIdList |
关联的用户集合 |
Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "ResourceId": "4d8854bd-9e87-4981-8bb1-d26bdcb94baf", "ClassIdList": [ "c7cf1ac2-c9cf-4558-a2e1-310eb46f3d59", "878246cf-8d24-4a16-a67a-c82b7c26ece0" ] }
text/html
Sample:
{"ResourceId":"4d8854bd-9e87-4981-8bb1-d26bdcb94baf","ClassIdList":["c7cf1ac2-c9cf-4558-a2e1-310eb46f3d59","878246cf-8d24-4a16-a67a-c82b7c26ece0"]}
application/xml, text/xml
Sample:
<ResourceClassDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <ClassIdList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>c7cf1ac2-c9cf-4558-a2e1-310eb46f3d59</d2p1:guid> <d2p1:guid>878246cf-8d24-4a16-a67a-c82b7c26ece0</d2p1:guid> </ClassIdList> <ResourceId>4d8854bd-9e87-4981-8bb1-d26bdcb94baf</ResourceId> </ResourceClassDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
保存资源和班级关联
JsonRtnDtoOfBooleanName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": true }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":true}
application/xml, text/xml
Sample:
<JsonRtnDtoOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data>true</Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfboolean>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":true});