PUT api/News/Update?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
NewsBinddingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Title | string |
None. |
|
| Contents | string |
None. |
|
| TypeId | integer |
None. |
|
| ImageUrl | string |
None. |
|
| Summary | string |
None. |
|
| IsHot | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"title": "sample string 1",
"contents": "sample string 2",
"typeId": 3,
"imageUrl": "sample string 4",
"summary": "sample string 5",
"isHot": true
}
application/xml, text/xml
Sample:
<NewsBinddingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgencyWebAPI.Models.News"> <Contents>sample string 2</Contents> <ImageUrl>sample string 4</ImageUrl> <IsHot>true</IsHot> <Summary>sample string 5</Summary> <Title>sample string 1</Title> <TypeId>3</TypeId> </NewsBinddingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.