POST api/carbonella/v1/Menu/book

Request Information

URI Parameters

None.

Body Parameters

BookDTO
NameDescriptionTypeAdditional information
id

integer

None.

user

UserDTO

None.

date

date

None.

book_number

integer

None.

book_total

integer

None.

book_name

string

None.

note

string

None.

book_need

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "user": {
    "id": 1,
    "name": "sample string 2",
    "surname": "sample string 3",
    "birthdate": "2021-09-27 02:59:08",
    "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",
    "qrcode_path": "sample string 19",
    "referral_code": "sample string 20",
    "version": 1,
    "active": 64,
    "rowversion": "QEA=",
    "province": {
      "id": 1,
      "name": "sample string 2",
      "rowversion": "QEA="
    },
    "edit_date": "2021-09-27 02:59:08",
    "create_date": "2021-09-27 02:59:08",
    "banned": 64,
    "is_app_login": true,
    "invite_referral": "sample string 22"
  },
  "date": "2021-09-27 02:59:08",
  "book_number": 1,
  "book_total": 1,
  "book_name": "sample string 3",
  "note": "sample string 4",
  "book_need": 1
}

application/xml, text/xml

Sample:
<BookDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Carbonella.DTO.Menu">
  <book_name>sample string 3</book_name>
  <book_need>1</book_need>
  <book_number>1</book_number>
  <book_total>1</book_total>
  <date>2021-09-27T02:59:08.576702+02:00</date>
  <id>1</id>
  <note>sample string 4</note>
  <user xmlns:d2p1="http://schemas.datacontract.org/2004/07/Carbonella.DTO.User">
    <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-09-27T02:59:08.576702+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-09-27T02:59:08.576702+02:00</d2p1:create_date>
    <d2p1:edit_date>2021-09-27T02:59:08.576702+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:invite_referral>sample string 22</d2p1:invite_referral>
    <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:qrcode_path>sample string 19</d2p1:qrcode_path>
    <d2p1:referral_code>sample string 20</d2p1:referral_code>
    <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>
  </user>
</BookDTO>

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/Carbonella.DTO">
  <Errors i:nil="true" />
  <Payload />
  <Status>
    <Code>sample string 1</Code>
    <Description>sample string 2</Description>
  </Status>
</ResponseDTOOfanyType>