POST api/Mesas

Request Information

URI Parameters

None.

Body Parameters

MESAS
NameDescriptionTypeAdditional information
MesaId

decimal number

None.

Nombre

string

None.

Capacidad

integer

None.

Estado

string

None.

Ocupacion

boolean

None.

Zona

string

None.

ORDEN

Collection of ORDEN

None.

Request Formats

application/json, text/json

Sample:
{
  "MesaId": 1.0,
  "Nombre": "sample string 2",
  "Capacidad": 1,
  "Estado": "sample string 3",
  "Ocupacion": true,
  "Zona": "sample string 4",
  "ORDEN": [
    {
      "$id": "2",
      "OrdenId": 1.0,
      "MesaId": 2.0,
      "Fecha": "2025-12-11T08:16:49.6678492-05:00",
      "MeseroId": 4.0,
      "Estado": "sample string 5",
      "DETALLEORDEN": [
        {
          "$id": "3",
          "DetalleId": 1.0,
          "OrdenId": 2.0,
          "ProductoId": 3.0,
          "Cantidad": 4,
          "Observaciones": "sample string 5",
          "ORDEN": {
            "$ref": "2"
          },
          "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",
            "DETALLEFACTURA": [
              {
                "$id": "5",
                "DetalleId": 1.0,
                "FacturaId": 2.0,
                "ProductoId": 3.0,
                "ValorUnitario": 4.0,
                "Cantidad": 5,
                "ValorTotal": 1.0,
                "Impuesto": 1.0,
                "Estado": "sample string 6",
                "FACTURAS": {
                  "$id": "6",
                  "FacturaId": 1.0,
                  "NumeroFactura": "sample string 2",
                  "ClienteId": "sample string 3",
                  "Fecha": "2025-12-11T08:16:49.6678492-05:00",
                  "Subtotal": 5.0,
                  "Total": 6.0,
                  "Estado": "sample string 7",
                  "MedioPago": "sample string 8",
                  "CLIENTES": {
                    "$id": "7",
                    "ClienteId": "sample string 1",
                    "Telefono": "sample string 2",
                    "Direccion": "sample string 3",
                    "Correo": "sample string 4",
                    "PERSONAS": {
                      "$id": "8",
                      "PersonaId": "sample string 1",
                      "TipoDocumentoId": "sample string 2",
                      "NumeroDocumento": "sample string 3",
                      "Primernombre": "sample string 4",
                      "SegundoNombre": "sample string 5",
                      "PrimerApellido": "sample string 6",
                      "SegundoApellido": "sample string 7",
                      "NombreCompleto": "sample string 8",
                      "Telefono": "sample string 9",
                      "Direccion": "sample string 10",
                      "FechaNacimiento": "2025-12-11T08:16:49.6678492-05:00",
                      "TipoPersona": "sample string 11",
                      "DigitoChequeo": "sample string 12",
                      "CLIENTES": {
                        "$ref": "7"
                      },
                      "SEUSUARIOS": {
                        "$id": "9",
                        "UsuarioId": "sample string 1",
                        "Login": "sample string 2",
                        "CorreoElectronico": "sample string 3",
                        "Clave": "sample string 4",
                        "Inicializa": true,
                        "Estado": "sample string 6",
                        "FechaCreacion": "2025-12-11T08:16:49.6678492-05:00",
                        "UsuarioRegistro": "sample string 8",
                        "CodigoRol": "sample string 9",
                        "PERSONAS": {
                          "$ref": "8"
                        }
                      }
                    },
                    "FACTURAS": [
                      {
                        "$ref": "6"
                      },
                      {
                        "$ref": "6"
                      }
                    ]
                  },
                  "DETALLEFACTURA": [
                    {
                      "$ref": "5"
                    },
                    {
                      "$ref": "5"
                    }
                  ]
                },
                "PRODUCTOS": {
                  "$ref": "4"
                }
              },
              {
                "$ref": "5"
              }
            ],
            "DETALLEORDEN": [
              {
                "$ref": "3"
              },
              {
                "$ref": "3"
              }
            ],
            "LISTAPRECIOS": [
              {
                "$id": "10",
                "Id": 1.0,
                "ProductoId": 2.0,
                "Precio": 3.0,
                "Estado": "sample string 4",
                "VigenciaInicial": "2025-12-11T08:16:49.6678492-05:00",
                "VigenciaFinal": "2025-12-11T08:16:49.6678492-05:00",
                "PRODUCTOS": {
                  "$ref": "4"
                }
              },
              {
                "$ref": "10"
              }
            ]
          }
        },
        {
          "$ref": "3"
        }
      ],
      "MESAS": {
        "$ref": "1"
      }
    },
    {
      "$ref": "2"
    }
  ]
}

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 'MESAS'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.