POST api/qlvipham/TaoQLViPham

Tạo mới thiết bị

Request Information

URI Parameters

None.

Body Parameters

QLViPhamModel
NameDescriptionTypeAdditional information
IdRow

integer

None.

IdSap

integer

None.

IdTTh

integer

None.

IdLVP

integer

None.

HinhThucXuLy

integer

None.

MucDoXuLy

string

None.

NoiDungViPham

string

None.

GhiChu

string

None.

DanhCho

integer

None.

ListPhuSap

Collection of integer

None.

DaXuLy

boolean

None.

NgayLap

string

None.

NgayTiepNhan

string

None.

NgayXuLy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IdRow": 1,
  "IdSap": 2,
  "IdTTh": 3,
  "IdLVP": 4,
  "HinhThucXuLy": 5,
  "MucDoXuLy": "sample string 6",
  "NoiDungViPham": "sample string 7",
  "GhiChu": "sample string 8",
  "DanhCho": 9,
  "ListPhuSap": [
    1,
    2
  ],
  "DaXuLy": true,
  "NgayLap": "sample string 11",
  "NgayTiepNhan": "sample string 12",
  "NgayXuLy": "sample string 13"
}

application/xml, text/xml

Sample:
<QLViPhamModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
  <DaXuLy>true</DaXuLy>
  <DanhCho>9</DanhCho>
  <GhiChu>sample string 8</GhiChu>
  <HinhThucXuLy>5</HinhThucXuLy>
  <IdLVP>4</IdLVP>
  <IdRow>1</IdRow>
  <IdSap>2</IdSap>
  <IdTTh>3</IdTTh>
  <ListPhuSap xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </ListPhuSap>
  <MucDoXuLy>sample string 6</MucDoXuLy>
  <NgayLap>sample string 11</NgayLap>
  <NgayTiepNhan>sample string 12</NgayTiepNhan>
  <NgayXuLy>sample string 13</NgayXuLy>
  <NoiDungViPham>sample string 7</NoiDungViPham>
</QLViPhamModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseModelOfObject
NameDescriptionTypeAdditional information
status

integer

None.

data

Object

None.

page

Object

None.

error

ErrorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "data": {},
  "page": {},
  "error": {
    "message": "sample string 1",
    "code": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<BaseModelOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
  <data />
  <error>
    <code>sample string 2</code>
    <message>sample string 1</message>
  </error>
  <page />
  <status>1</status>
</BaseModelOfanyType>