POST api/mensajesweb

Request Information

URI Parameters

None.

Body Parameters

MensajeWeb
NameDescriptionTypeAdditional information
escuela

CentroEscuela

None.

telefono

string

None.

email

string

None.

contenido

string

None.

fecha_registro

string

None.

status

integer

None.

id

integer

None.

nombre

string

None.

tipo

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "tipo": 1,
  "escuela": {
    "ciudad": {
      "estado": {
        "pais": {
          "id": 1,
          "nombre": "sample string 1"
        },
        "id": 1,
        "nombre": "sample string 1"
      },
      "id": 1,
      "nombre": "sample string 1"
    },
    "id": 1,
    "nombre": "sample string 1"
  },
  "telefono": "sample string 1",
  "email": "sample string 2",
  "contenido": "sample string 3",
  "fecha_registro": "sample string 4",
  "status": 1,
  "id": 1,
  "nombre": "sample string 5"
}

application/xml, text/xml

Sample:
<MensajeWeb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VocabloAPI.Models.MensajesWeb">
  <id xmlns="http://schemas.datacontract.org/2004/07/VocabloAPI.Models">1</id>
  <nombre xmlns="http://schemas.datacontract.org/2004/07/VocabloAPI.Models">sample string 5</nombre>
  <contenido>sample string 3</contenido>
  <email>sample string 2</email>
  <escuela>
    <id xmlns="http://schemas.datacontract.org/2004/07/VocabloAPI.Models">1</id>
    <nombre xmlns="http://schemas.datacontract.org/2004/07/VocabloAPI.Models">sample string 1</nombre>
    <ciudad xmlns:d3p1="http://schemas.datacontract.org/2004/07/VocabloAPI.Models.Localidades">
      <id xmlns="http://schemas.datacontract.org/2004/07/VocabloAPI.Models">1</id>
      <nombre xmlns="http://schemas.datacontract.org/2004/07/VocabloAPI.Models">sample string 1</nombre>
      <d3p1:estado>
        <id xmlns="http://schemas.datacontract.org/2004/07/VocabloAPI.Models">1</id>
        <nombre xmlns="http://schemas.datacontract.org/2004/07/VocabloAPI.Models">sample string 1</nombre>
        <d3p1:pais xmlns:d5p1="http://schemas.datacontract.org/2004/07/VocabloAPI.Models">
          <d5p1:id>1</d5p1:id>
          <d5p1:nombre>sample string 1</d5p1:nombre>
        </d3p1:pais>
      </d3p1:estado>
    </ciudad>
  </escuela>
  <fecha_registro>sample string 4</fecha_registro>
  <status>1</status>
  <telefono>sample string 1</telefono>
  <tipo>1</tipo>
</MensajeWeb>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Respuesta
NameDescriptionTypeAdditional information
resultado

integer

None.

mensaje

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "resultado": 1,
  "mensaje": "sample string 2",
  "data": {}
}

application/xml, text/xml

Sample:
<Respuesta xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VocabloAPI.Models">
  <data />
  <mensaje>sample string 2</mensaje>
  <resultado>1</resultado>
</Respuesta>