imagina / iplaces-module
1.4.3
2019-07-29 20:06 UTC
Requires
- php: >=7.0.0
- composer/installers: ~1.0
- idavoll/core-module: ~3.0
- imagina/ilocations-module: >=0.1
Requires (Dev)
- orchestra/testbench: 3.5.*
- phpunit/phpunit: ~6.0
README
设置
- Api maps from Google
一般状态(用于地点和其他)
- INACTIVE = 0;
- ACTIVE = 1;
类型(用于服务)
- PRINCIPAL = 0;
- OTHER = 1;
API 示例
地点
列出所有具有关系的地点
https://mydomain.com/api/iplace/places?include=category,schedule,zone,province,city,services,spaces
列出所有具有关系、分页和筛选的地点
获取一个地点(参数 = ID )
获取一个地点(参数 = slug )
分类
列出所有具有关系的分类
https://mydomain.com/api/iplace/categories
获取一个分类(参数 = ID 或 slug )
https://mydomain.com/api/iplace/categories/40
日程表
- List All = Same that category
- One = By id or title
服务
- List All = Same that category
- One = Same that category
- Example for a type of service
https://mydomain.com/api/iplace/services?&filter={"servType":[0]}
区域
- List All = Same that category
- One = By id or title
空间
- List All = Same that category
- One = Same that category