POST api/carbonella/v1/Menu/register

Request Information

URI Parameters

None.

Body Parameters

MenuDTO
NameDescriptionTypeAdditional information
id

integer

None.

description

string

None.

note

string

None.

date

date

None.

meals

Collection of MealDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "description": "sample string 2",
  "note": "sample string 3",
  "date": "2021-09-27 02:07:56",
  "meals": [
    {
      "id": 1,
      "id_menu": 2,
      "description": "sample string 3",
      "price": 1.0,
      "note": "sample string 4",
      "meal_type": {
        "code": "sample string 1",
        "description": "sample string 2"
      },
      "active": 64
    },
    {
      "id": 1,
      "id_menu": 2,
      "description": "sample string 3",
      "price": 1.0,
      "note": "sample string 4",
      "meal_type": {
        "code": "sample string 1",
        "description": "sample string 2"
      },
      "active": 64
    }
  ]
}

application/xml, text/xml

Sample:
<MenuDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Carbonella.DTO.Menu">
  <date>2021-09-27T02:07:56.9236675+02:00</date>
  <description>sample string 2</description>
  <id>1</id>
  <meals>
    <MealDTO>
      <active>64</active>
      <description>sample string 3</description>
      <id>1</id>
      <id_menu>2</id_menu>
      <meal_type>
        <code>sample string 1</code>
        <description>sample string 2</description>
      </meal_type>
      <note>sample string 4</note>
      <price>1</price>
    </MealDTO>
    <MealDTO>
      <active>64</active>
      <description>sample string 3</description>
      <id>1</id>
      <id_menu>2</id_menu>
      <meal_type>
        <code>sample string 1</code>
        <description>sample string 2</description>
      </meal_type>
      <note>sample string 4</note>
      <price>1</price>
    </MealDTO>
  </meals>
  <note>sample string 3</note>
</MenuDTO>

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>