POST api/AddArticle
Thêm bài khuyến mại
Request Information
Requires Authorization!
Parameters
Name | Description | Type | Additional information |
---|---|---|---|
SalonUserArticleUpdate |
SalonUserArticleUpdate |
SalonUserArticleUpdate |
None. |
Body Parameters
SalonUserArticleUpdateName | Description | Type | Additional information |
---|---|---|---|
type | integer |
None. |
|
ID | integer |
None. |
|
Title | string |
None. |
|
Sapo | string |
None. |
|
Avatar | string |
None. |
|
Content | string |
None. |
|
SalonID | integer |
None. |
|
CreatedDate | date |
None. |
|
ModifyDate | date |
None. |
|
Status | integer |
None. |
|
SalonType | integer |
None. |
|
Slug | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "type": 1, "ID": 2, "Title": "sample string 3", "Sapo": "sample string 4", "Avatar": "sample string 5", "Content": "sample string 6", "SalonID": 7, "CreatedDate": "2025-01-18T04:36:20.203722+07:00", "ModifyDate": "2025-01-18T04:36:20.203722+07:00", "Status": 1, "SalonType": 8, "Slug": "sample string 9" }
application/xml, text/xml
Sample:
<SalonUserArticleUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Auto.AppApi.Models"> <Avatar xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">sample string 5</Avatar> <Content xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">sample string 6</Content> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">2025-01-18T04:36:20.203722+07:00</CreatedDate> <ID xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">2</ID> <ModifyDate xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">2025-01-18T04:36:20.203722+07:00</ModifyDate> <SalonID xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">7</SalonID> <SalonType xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">8</SalonType> <Sapo xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">sample string 4</Sapo> <Slug xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">sample string 9</Slug> <Status xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">1</Status> <Title xmlns="http://schemas.datacontract.org/2004/07/BanXeHoi.Models.DomainModels">sample string 3</Title> <type>1</type> </SalonUserArticleUpdate>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DataReturnObjName | Description | Type | Additional information |
---|---|---|---|
Status | integer |
None. |
|
Message | string |
None. |
|
Data | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": 1, "Message": "sample string 2", "Data": "sample string 3" }
application/xml, text/xml
Sample:
<DataReturnObj xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Auto.AppApi.Models"> <Data>sample string 3</Data> <Message>sample string 2</Message> <Status>1</Status> </DataReturnObj>