imagina/iplaces-module

Installs: 190

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 6

Open Issues: 0

Language:Blade

Type:asgard-module

1.4.3 2019-07-29 20:06 UTC

This package is auto-updated.

Last update: 2024-03-07 17:32:00 UTC


README

Settings

- Api maps from Google

General Status (For Places and other else)

- INACTIVE = 0;
- ACTIVE = 1;

Types (For services)

- PRINCIPAL = 0;
- OTHER = 1;

Api Examples

Places

List all places with relations

https://mydomain.com/api/iplace/places?include=category,schedule,zone,province,city,services,spaces

List all places with Relations,Pagination and Filter

https://mydomain.com/api/iplace/places?include=category,schedule,zone,province,city,services,spaces&page=1&filter={"categories":[1,2],"gama":[0],"qperson":10,"zones":[2]}

Get a place (Parameter = ID )

https://mydomain.com/api/iplace/places/1?include=category,schedule,zone,province,city,services,spaces

Get a place (Parameter = slug )

https://mydomain.com/api/iplace/places/prueba-1?include=category,schedule,zone,province,city,services,spaces

Categories

List all categories with relations

https://mydomain.com/api/iplace/categories

Get a category (Parameter = ID or Slug )

https://mydomain.com/api/iplace/categories/40

Shedules

- List All = Same that category
- One = By id or title

Services

- List All = Same that category
- One = Same that category
- Example for a type of service
    https://mydomain.com/api/iplace/services?&filter={"servType":[0]}

Zones

- List All = Same that category
- One = By id or title

Space

- List All = Same that category
- One = Same that category