POST api/UnitPhotoCategory/UploadPhoto

上传图片至相册

Request Information

URI Parameters

None.

Body Parameters

CategoryPhotoInput
NameDescriptionTypeAdditional information
CategoryID

相册ID

globally unique identifier

None.

PhotoList

图片集合(以|分隔)

string

None.

Title

标题

string

None.

Description

说明

string

None.

Token

签名

string

None.

SessionID

会话ID

globally unique identifier

None.

TimeStamp

时间戳

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryID": "499def2e-7227-434d-a61a-23106885b922",
  "PhotoList": "sample string 2",
  "Title": "sample string 3",
  "Description": "sample string 4",
  "Token": "sample string 5",
  "SessionID": "c8a9298b-d7ec-4a4b-8dc0-3cea7e11992f",
  "TimeStamp": 6
}

application/xml, text/xml

Sample:
<UnitPhotoCategoryController.CategoryPhotoInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.API.Photo">
  <SessionID xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.Models">c8a9298b-d7ec-4a4b-8dc0-3cea7e11992f</SessionID>
  <TimeStamp xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.Models">6</TimeStamp>
  <Token xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.Models">sample string 5</Token>
  <CategoryID>499def2e-7227-434d-a61a-23106885b922</CategoryID>
  <Description>sample string 4</Description>
  <PhotoList>sample string 2</PhotoList>
  <Title>sample string 3</Title>
</UnitPhotoCategoryController.CategoryPhotoInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CategoryPhotoInput'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.