POST api/GrabaOrden

Request Information

URI Parameters

None.

Body Parameters

OrderDTO
NameDescriptionTypeAdditional information
OrdenId

decimal number

None.

MesaId

decimal number

None.

Fecha

date

None.

MeseroId

decimal number

None.

Estado

string

None.

Mesas

MesasDTO

None.

Detalles

Collection of DetalleOrdenDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "OrdenId": 1.0,
  "MesaId": 2.0,
  "Fecha": "2025-12-11T08:13:49.5387859-05:00",
  "MeseroId": 4.0,
  "Estado": "sample string 5",
  "Mesas": {
    "$id": "2",
    "MesaId": 1.0,
    "Nombre": "sample string 2",
    "Capacidad": 1,
    "Estado": "sample string 3",
    "Ocupacion": true,
    "Zona": "sample string 4"
  },
  "Detalles": [
    {
      "$id": "3",
      "DetalleId": 1.0,
      "OrdenId": 2.0,
      "ProductoId": 3.0,
      "Cantidad": 4,
      "Observaciones": "sample string 5",
      "Orden": {
        "$ref": "1"
      },
      "Productos": {
        "$id": "4",
        "ProductoId": 1.0,
        "CategoriaId": "sample string 2",
        "Descripcion": "sample string 3",
        "Nombre": "sample string 4",
        "Imagen": "QEA=",
        "Codigo": "sample string 5",
        "Estado": "sample string 6"
      }
    },
    {
      "$ref": "3"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OrderDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.