POST Api/ModuleType/Add
Request Information
URI Parameters
None.
Body Parameters
ModuleTypeDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| CategoryId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Intro | string |
None. |
|
| CreateTime | date |
None. |
|
| CreateTimeToString | string |
None. |
|
| IsDeleted | boolean |
None. |
|
| CategoryName | string |
None. |
|
| PageIndex | integer |
None. |
|
| PageSize | integer |
None. |
|
| Total | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "483e58cd-94f2-4956-a251-4666ce48a0bf",
"CategoryId": "a07cf1bc-d9c6-4844-837a-2bc1d479b44d",
"Name": "sample string 2",
"Intro": "sample string 3",
"CreateTime": "2026-03-02T19:48:24.2295057+08:00",
"CreateTimeToString": "2026-03-02 19:48:24",
"IsDeleted": true,
"CategoryName": "sample string 4",
"PageIndex": 5,
"PageSize": 6,
"Total": 7
}
application/xml, text/xml
Sample:
<ModuleTypeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZShOil.Model"> <_x003C_PageIndex_x003E_k__BackingField>5</_x003C_PageIndex_x003E_k__BackingField> <_x003C_PageSize_x003E_k__BackingField>6</_x003C_PageSize_x003E_k__BackingField> <_x003C_Total_x003E_k__BackingField>7</_x003C_Total_x003E_k__BackingField> <CategoryId>a07cf1bc-d9c6-4844-837a-2bc1d479b44d</CategoryId> <CategoryName>sample string 4</CategoryName> <CreateTime>2026-03-02T19:48:24.2295057+08:00</CreateTime> <Id>483e58cd-94f2-4956-a251-4666ce48a0bf</Id> <Intro>sample string 3</Intro> <IsDeleted>true</IsDeleted> <Name>sample string 2</Name> </ModuleTypeDto>
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.