Categorias/

Url api/categorias/

Method: get

	
	 Server request
	 Const API_AUTH: Client api auth
Const format: data-value: raw

Server Response json array String id: primary key
String nombre: Category name
Send the parameters through the get method to the api url, the server will respond with the list of categories in json format.
Example: api/categorias/?format=raw&API_AUTH=<APIKEY>

Anuncio/

Enviar anuncio

Url api/anuncio/

Method: post

Inmobiliaria - Pisos,casas,duplex,áticos

	
	 Server request

	    Const provincia_idint - Identificador provincia (Ver maestros)
Const localidad_idint -Identificador localidad (Ver maestros)
Const titulostring -Título del anuncio
Const descripcionstring -Descripción del anuncio
Const tipoint -Constante valor = 4
Const categoria_idint -Listar categorias api -> valor id
Const categoriastring -Listar categorias api -> valor nombre
Const telefonoint -Telefono de contacto
Const telefono1int -Telefono para whatsapp
Const tipoventaint - 0 = Venta, 1 = Compra , 2 = Alquiler
Const preciodouble - Precio del anuncio
Const vendedorint - 0 = Particular , 1 = Profesional
Const p1int - Número de dormitorios
Const p2int - Número de baños
Const p3int - Metros cuadrados
Const p4int - Planta
Const p5int - Garaje (0 = No, 1 = Si)
Const p6int - Ascensor (0 = No, 1 = Si)
Const p7int - Trastero (0 = No, 1 = Si)
Const p10string - Dirección (Opcional)

Server Response json array String request: true || false
String Message: POST String id: identificador númerico anuncio
Send the parameters through the post method to the api url, the server will respond with the list of the state in json format.
Example: api/anuncio/?format=raw&action=add&API_AUTH=<APIKEY>

Inmobiliaria - Locales comerciales y parcelas

	
	 Server request

	    Const provincia_idint - Identificador provincia (Ver maestros)
Const localidad_idint -Identificador localidad (Ver maestros)
Const titulostring -Título del anuncio
Const descripcionstring -Descripción del anuncio
Const tipoint -Constante valor = 5
Const categoria_idint -Listar categorias api -> valor id
Const categoriastring -Listar categorias api -> valor nombre
Const telefonoint -Telefono de contacto
Const telefono1int -Telefono para whatsapp
Const tipoventaint - 0 = Venta, 1 = Compra , 2 = Alquiler
Const preciodouble - Precio del anuncio
Const vendedorint - 0 = Particular , 1 = Profesional
Const p1int - Metros cuadrados

Server Response json array String request: true || false
String Message: POST String id: identificador númerico anuncio
Send the parameters through the post method to the api url, the server will respond with the list of the state in json format.
Example: api/anuncio/?format=raw&action=add&API_AUTH=<APIKEY>

Eliminar anuncio

Method: get

	
	 Server request
	 Const API_AUTH: Client api auth
Const format: data-value: raw
Const ad: data-value: id

Server Response json array String request: true || false
String Message: GET
Send the parameters through the get method to the api url, the server will respond with the state in json format.
Example: api/anuncio/?format=raw&action=delete&API_AUTH=<APIKEY>&ad=<id>

Upload image

Method: post enctype='multipart/form-data'

	
	 Server request
	 Const API_AUTH(url): Client api auth
Const format(url): data-value: raw
Const ad(url): data-value: id
Const file(post): data-value: file image (jpg,png)

Server Response json array String request: true || false
String Message: POST String file: identificador de la imagen
Send the parameters through the post method to the api url width de param input "file", the server will respond with the state in json format.
Example: api/images/?format=raw&API_AUTH=<APIKEY>&ad=<id-anuncio>

Publish modules to the "offcanvs" position.