Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bartko-s/address

Slovak Republic Address API
https://github.com/bartko-s/address

address api slovak

Last synced: 5 days ago
JSON representation

Slovak Republic Address API

Awesome Lists containing this project

README

        

# Slovak Address API

[![Latest Stable Version](https://poser.pugx.org/stefano/address/v/stable)](https://packagist.org/packages/stefano/address)
[![License](https://poser.pugx.org/stefano/address/license)](https://packagist.org/packages/stefano/address)

[![Donate on PayPal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://paypal.me/stevo4)

[Online DEMO](https://address.stefanbartko.sk/)

## Installation
- run `composer create-project stefano/address my-project`
- create database `database.sql`
- rename .end.dist to .env and fill it with your settings
- run import `bin/console import:address`

## API Endpoints Documentation

### GET /api/address
- fields [array] [optional]
- [string] street, city, postcode, post_office
- filters [array] [optional]
- street [string] [optional]
- city [string] [optional]
- postcode [string] [optional]
- post_office [string] [optional]
- orders [array] [optional]
- [string] street, city, postcode, post_office
- order-direction [asc or desc] [optional] default asc
- limit [number] [optional] default 20
- offset [number] [optional] default 0

Response:
```
{
items: [
street, string,
city: string,
postcode: string,
post_office: string
]
}
```