POST api/edilhole/v1/Dispatch/register

Request Information

URI Parameters

None.

Body Parameters

DispatchDTO
NameDescriptionTypeAdditional information
id

integer

None.

title

string

None.

description

string

None.

address

string

None.

city

string

None.

img_path

string

None.

cod_state

string

None.

last_latitude

decimal number

None.

last_longitude

decimal number

None.

disp_note

string

None.

id_user

integer

None.

user_name

string

None.

user_mail

string

None.

user_tel

string

None.

operators

Collection of UserDTO

None.

history

Collection of DispatchHistoryDTO

None.

rowversion

Collection of byte

None.

edit_date

date

None.

create_date

date

None.

end_date

date

None.

change_state

byte

None.

assign_note

string

None.

feedback1

string

None.

feedback2

string

None.

feedback3

string

None.

rdi

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "title": "sample string 2",
  "description": "sample string 3",
  "address": "sample string 4",
  "city": "sample string 5",
  "img_path": "sample string 6",
  "cod_state": "sample string 7",
  "last_latitude": 1.1,
  "last_longitude": 1.1,
  "disp_note": "sample string 8",
  "id_user": 1,
  "user_name": "sample string 9",
  "user_mail": "sample string 10",
  "user_tel": "sample string 11",
  "operators": [
    {
      "id": 1,
      "name": "sample string 2",
      "surname": "sample string 3",
      "birthdate": "2021-10-26 17:38:12",
      "email": "sample string 4",
      "password": "sample string 5",
      "nickname": "sample string 6",
      "cod_user_role": "sample string 7",
      "id_city": 1,
      "city": "sample string 8",
      "address": "sample string 9",
      "zipcode": "sample string 10",
      "nation": "sample string 11",
      "phone": "sample string 12",
      "gender": 64,
      "profile_img": "sample string 13",
      "last_latitude": 1.1,
      "last_longitude": 1.1,
      "temp_pass_code": "sample string 14",
      "fb_id": "sample string 15",
      "google_id": "sample string 16",
      "apple_id": "sample string 17",
      "push_id": "sample string 18",
      "version": 1,
      "active": 64,
      "rowversion": "QEA=",
      "province": {
        "id": 1,
        "name": "sample string 2",
        "rowversion": "QEA="
      },
      "edit_date": "2021-10-26 17:38:12",
      "create_date": "2021-10-26 17:38:12",
      "banned": 64,
      "is_app_login": true
    },
    {
      "id": 1,
      "name": "sample string 2",
      "surname": "sample string 3",
      "birthdate": "2021-10-26 17:38:12",
      "email": "sample string 4",
      "password": "sample string 5",
      "nickname": "sample string 6",
      "cod_user_role": "sample string 7",
      "id_city": 1,
      "city": "sample string 8",
      "address": "sample string 9",
      "zipcode": "sample string 10",
      "nation": "sample string 11",
      "phone": "sample string 12",
      "gender": 64,
      "profile_img": "sample string 13",
      "last_latitude": 1.1,
      "last_longitude": 1.1,
      "temp_pass_code": "sample string 14",
      "fb_id": "sample string 15",
      "google_id": "sample string 16",
      "apple_id": "sample string 17",
      "push_id": "sample string 18",
      "version": 1,
      "active": 64,
      "rowversion": "QEA=",
      "province": {
        "id": 1,
        "name": "sample string 2",
        "rowversion": "QEA="
      },
      "edit_date": "2021-10-26 17:38:12",
      "create_date": "2021-10-26 17:38:12",
      "banned": 64,
      "is_app_login": true
    }
  ],
  "history": [
    {
      "id": 1,
      "id_dispatch": 1,
      "dispatch_title": "sample string 2",
      "dispatch_description": "sample string 3",
      "from_user_id": 1,
      "from_user_email": "sample string 4",
      "from_user_name": "sample string 5",
      "from_user_role": "sample string 6",
      "to_user_id": 1,
      "to_user_email": "sample string 7",
      "to_user_name": "sample string 8",
      "to_user_role": "sample string 9",
      "cod_state": "sample string 10",
      "note": "sample string 11",
      "disp_note": "sample string 12",
      "img_path": "sample string 13",
      "img_path2": "sample string 14",
      "img_path3": "sample string 15",
      "img_path4": "sample string 16",
      "rowversion": "QEA=",
      "edit_date": "2021-10-26 17:38:12",
      "create_date": "2021-10-26 17:38:12"
    },
    {
      "id": 1,
      "id_dispatch": 1,
      "dispatch_title": "sample string 2",
      "dispatch_description": "sample string 3",
      "from_user_id": 1,
      "from_user_email": "sample string 4",
      "from_user_name": "sample string 5",
      "from_user_role": "sample string 6",
      "to_user_id": 1,
      "to_user_email": "sample string 7",
      "to_user_name": "sample string 8",
      "to_user_role": "sample string 9",
      "cod_state": "sample string 10",
      "note": "sample string 11",
      "disp_note": "sample string 12",
      "img_path": "sample string 13",
      "img_path2": "sample string 14",
      "img_path3": "sample string 15",
      "img_path4": "sample string 16",
      "rowversion": "QEA=",
      "edit_date": "2021-10-26 17:38:12",
      "create_date": "2021-10-26 17:38:12"
    }
  ],
  "rowversion": "QEA=",
  "edit_date": "2021-10-26 17:38:12",
  "create_date": "2021-10-26 17:38:12",
  "end_date": "2021-10-26 17:38:12",
  "change_state": 64,
  "assign_note": "sample string 14",
  "feedback1": "sample string 15",
  "feedback2": "sample string 16",
  "feedback3": "sample string 17",
  "rdi": "sample string 18"
}

application/xml, text/xml

Sample:
<DispatchDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EdilHole.DTO.Dispatch">
  <address>sample string 4</address>
  <assign_note>sample string 14</assign_note>
  <change_state>64</change_state>
  <city>sample string 5</city>
  <cod_state>sample string 7</cod_state>
  <create_date>2021-10-26T17:38:12.16243+02:00</create_date>
  <description>sample string 3</description>
  <disp_note>sample string 8</disp_note>
  <edit_date>2021-10-26T17:38:12.16243+02:00</edit_date>
  <end_date>2021-10-26T17:38:12.16243+02:00</end_date>
  <feedback1>sample string 15</feedback1>
  <feedback2>sample string 16</feedback2>
  <feedback3>sample string 17</feedback3>
  <history>
    <DispatchHistoryDTO>
      <cod_state>sample string 10</cod_state>
      <create_date>2021-10-26T17:38:12.16243+02:00</create_date>
      <disp_note>sample string 12</disp_note>
      <dispatch_description>sample string 3</dispatch_description>
      <dispatch_title>sample string 2</dispatch_title>
      <edit_date>2021-10-26T17:38:12.16243+02:00</edit_date>
      <from_user_email>sample string 4</from_user_email>
      <from_user_id>1</from_user_id>
      <from_user_name>sample string 5</from_user_name>
      <from_user_role>sample string 6</from_user_role>
      <id>1</id>
      <id_dispatch>1</id_dispatch>
      <img_path>sample string 13</img_path>
      <img_path2>sample string 14</img_path2>
      <img_path3>sample string 15</img_path3>
      <img_path4>sample string 16</img_path4>
      <note>sample string 11</note>
      <rowversion>QEA=</rowversion>
      <to_user_email>sample string 7</to_user_email>
      <to_user_id>1</to_user_id>
      <to_user_name>sample string 8</to_user_name>
      <to_user_role>sample string 9</to_user_role>
    </DispatchHistoryDTO>
    <DispatchHistoryDTO>
      <cod_state>sample string 10</cod_state>
      <create_date>2021-10-26T17:38:12.16243+02:00</create_date>
      <disp_note>sample string 12</disp_note>
      <dispatch_description>sample string 3</dispatch_description>
      <dispatch_title>sample string 2</dispatch_title>
      <edit_date>2021-10-26T17:38:12.16243+02:00</edit_date>
      <from_user_email>sample string 4</from_user_email>
      <from_user_id>1</from_user_id>
      <from_user_name>sample string 5</from_user_name>
      <from_user_role>sample string 6</from_user_role>
      <id>1</id>
      <id_dispatch>1</id_dispatch>
      <img_path>sample string 13</img_path>
      <img_path2>sample string 14</img_path2>
      <img_path3>sample string 15</img_path3>
      <img_path4>sample string 16</img_path4>
      <note>sample string 11</note>
      <rowversion>QEA=</rowversion>
      <to_user_email>sample string 7</to_user_email>
      <to_user_id>1</to_user_id>
      <to_user_name>sample string 8</to_user_name>
      <to_user_role>sample string 9</to_user_role>
    </DispatchHistoryDTO>
  </history>
  <id>1</id>
  <id_user>1</id_user>
  <img_path>sample string 6</img_path>
  <last_latitude>1.1</last_latitude>
  <last_longitude>1.1</last_longitude>
  <operators xmlns:d2p1="http://schemas.datacontract.org/2004/07/EdilHole.DTO.User">
    <d2p1:UserDTO>
      <d2p1:active>64</d2p1:active>
      <d2p1:address>sample string 9</d2p1:address>
      <d2p1:apple_id>sample string 17</d2p1:apple_id>
      <d2p1:banned>64</d2p1:banned>
      <d2p1:birthdate>2021-10-26T17:38:12.1604306+02:00</d2p1:birthdate>
      <d2p1:city>sample string 8</d2p1:city>
      <d2p1:cod_user_role>sample string 7</d2p1:cod_user_role>
      <d2p1:create_date>2021-10-26T17:38:12.16243+02:00</d2p1:create_date>
      <d2p1:edit_date>2021-10-26T17:38:12.16243+02:00</d2p1:edit_date>
      <d2p1:email>sample string 4</d2p1:email>
      <d2p1:fb_id>sample string 15</d2p1:fb_id>
      <d2p1:gender>64</d2p1:gender>
      <d2p1:google_id>sample string 16</d2p1:google_id>
      <d2p1:id>1</d2p1:id>
      <d2p1:id_city>1</d2p1:id_city>
      <d2p1:is_app_login>true</d2p1:is_app_login>
      <d2p1:last_latitude>1.1</d2p1:last_latitude>
      <d2p1:last_longitude>1.1</d2p1:last_longitude>
      <d2p1:name>sample string 2</d2p1:name>
      <d2p1:nation>sample string 11</d2p1:nation>
      <d2p1:nickname>sample string 6</d2p1:nickname>
      <d2p1:password>sample string 5</d2p1:password>
      <d2p1:phone>sample string 12</d2p1:phone>
      <d2p1:profile_img>sample string 13</d2p1:profile_img>
      <d2p1:province>
        <d2p1:id>1</d2p1:id>
        <d2p1:name>sample string 2</d2p1:name>
        <d2p1:rowversion>QEA=</d2p1:rowversion>
      </d2p1:province>
      <d2p1:push_id>sample string 18</d2p1:push_id>
      <d2p1:rowversion>QEA=</d2p1:rowversion>
      <d2p1:surname>sample string 3</d2p1:surname>
      <d2p1:temp_pass_code>sample string 14</d2p1:temp_pass_code>
      <d2p1:version>1</d2p1:version>
      <d2p1:zipcode>sample string 10</d2p1:zipcode>
    </d2p1:UserDTO>
    <d2p1:UserDTO>
      <d2p1:active>64</d2p1:active>
      <d2p1:address>sample string 9</d2p1:address>
      <d2p1:apple_id>sample string 17</d2p1:apple_id>
      <d2p1:banned>64</d2p1:banned>
      <d2p1:birthdate>2021-10-26T17:38:12.1604306+02:00</d2p1:birthdate>
      <d2p1:city>sample string 8</d2p1:city>
      <d2p1:cod_user_role>sample string 7</d2p1:cod_user_role>
      <d2p1:create_date>2021-10-26T17:38:12.16243+02:00</d2p1:create_date>
      <d2p1:edit_date>2021-10-26T17:38:12.16243+02:00</d2p1:edit_date>
      <d2p1:email>sample string 4</d2p1:email>
      <d2p1:fb_id>sample string 15</d2p1:fb_id>
      <d2p1:gender>64</d2p1:gender>
      <d2p1:google_id>sample string 16</d2p1:google_id>
      <d2p1:id>1</d2p1:id>
      <d2p1:id_city>1</d2p1:id_city>
      <d2p1:is_app_login>true</d2p1:is_app_login>
      <d2p1:last_latitude>1.1</d2p1:last_latitude>
      <d2p1:last_longitude>1.1</d2p1:last_longitude>
      <d2p1:name>sample string 2</d2p1:name>
      <d2p1:nation>sample string 11</d2p1:nation>
      <d2p1:nickname>sample string 6</d2p1:nickname>
      <d2p1:password>sample string 5</d2p1:password>
      <d2p1:phone>sample string 12</d2p1:phone>
      <d2p1:profile_img>sample string 13</d2p1:profile_img>
      <d2p1:province>
        <d2p1:id>1</d2p1:id>
        <d2p1:name>sample string 2</d2p1:name>
        <d2p1:rowversion>QEA=</d2p1:rowversion>
      </d2p1:province>
      <d2p1:push_id>sample string 18</d2p1:push_id>
      <d2p1:rowversion>QEA=</d2p1:rowversion>
      <d2p1:surname>sample string 3</d2p1:surname>
      <d2p1:temp_pass_code>sample string 14</d2p1:temp_pass_code>
      <d2p1:version>1</d2p1:version>
      <d2p1:zipcode>sample string 10</d2p1:zipcode>
    </d2p1:UserDTO>
  </operators>
  <rdi>sample string 18</rdi>
  <rowversion>QEA=</rowversion>
  <title>sample string 2</title>
  <user_mail>sample string 10</user_mail>
  <user_name>sample string 9</user_name>
  <user_tel>sample string 11</user_tel>
</DispatchDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseDTOOfObject
NameDescriptionTypeAdditional information
Status

StatusDTO

None.

Payload

Object

None.

Errors

Collection of ErrorDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": {
    "Code": "sample string 1",
    "Description": "sample string 2"
  },
  "Payload": {},
  "Errors": null
}

application/xml, text/xml

Sample:
<ResponseDTOOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EdilHole.DTO">
  <Errors i:nil="true" />
  <Payload />
  <Status>
    <Code>sample string 1</Code>
    <Description>sample string 2</Description>
  </Status>
</ResponseDTOOfanyType>