POST api/StudyMeansManage/AddMeans
Request Information
URI Parameters
None.
Body Parameters
SaveMeansDtoName | Description | Type | Additional information |
---|---|---|---|
title | string |
None. |
|
means | string |
None. |
|
classification | string |
None. |
|
type | string |
None. |
|
video_cover | string |
None. |
|
meansDetails | Collection of MeansDetailDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "title": "sample string 1", "means": "sample string 2", "classification": "sample string 3", "type": "sample string 4", "video_cover": "sample string 5", "meansDetails": [ { "file_type": "sample string 1", "file_url": "sample string 2", "file_name": "sample string 3", "file_size": "sample string 4" }, { "file_type": "sample string 1", "file_url": "sample string 2", "file_name": "sample string 3", "file_size": "sample string 4" } ] }
application/xml, text/xml
Sample:
<SaveMeansDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI.ViewModel"> <classification>sample string 3</classification> <means>sample string 2</means> <meansDetails> <MeansDetailDto> <file_name>sample string 3</file_name> <file_size>sample string 4</file_size> <file_type>sample string 1</file_type> <file_url>sample string 2</file_url> </MeansDetailDto> <MeansDetailDto> <file_name>sample string 3</file_name> <file_size>sample string 4</file_size> <file_type>sample string 1</file_type> <file_url>sample string 2</file_url> </MeansDetailDto> </meansDetails> <title>sample string 1</title> <type>sample string 4</type> <video_cover>sample string 5</video_cover> </SaveMeansDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResponseName | Description | Type | Additional information |
---|---|---|---|
msg | string |
None. |
|
code | integer |
None. |
|
total | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "msg": "sample string 1", "code": 2, "total": 3 }
application/xml, text/xml
Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI"> <code>2</code> <msg>sample string 1</msg> <total>3</total> </BaseResponse>