-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Add rest API for all available resources #22
Conversation
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Bumps [laravel/pint](https://github.com/laravel/pint) from 1.12.0 to 1.13.1. - [Release notes](https://github.com/laravel/pint/releases) - [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md) - [Commits](laravel/pint@v1.12.0...v1.13.1) --- updated-dependencies: - dependency-name: laravel/pint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [orchestra/testbench](https://github.com/orchestral/testbench) from 8.10.0 to 8.10.1. - [Release notes](https://github.com/orchestral/testbench/releases) - [Changelog](https://github.com/orchestral/testbench/blob/develop/CHANGELOG-8.x.md) - [Commits](orchestral/testbench@v8.10.0...v8.10.1) --- updated-dependencies: - dependency-name: orchestra/testbench dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
…-1.13.1 chore(deps-dev): bump laravel/pint from 1.12.0 to 1.13.1
…stbench-8.10.1 chore(deps-dev): bump orchestra/testbench from 8.10.0 to 8.10.1
Signed-off-by: Fery Wardiyanto <[email protected]>
* main: chore(deps-dev): bump laravel/pint from 1.12.0 to 1.13.1 chore(deps-dev): bump orchestra/testbench from 8.10.0 to 8.10.2
Signed-off-by: Fery Wardiyanto <[email protected]>
…n file Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
ProvincesGet all provinces
Show a province
Get all regencies in a province
Get all districts in a province
Get all villages in a province
|
RegenciesGet all regencies
Show a regency
Get all districts in a regency
Get all villages in a regency
|
DistrictsGet all districts
Show a district
Get all villages in a district
|
VillagesGet all villages
Get a village
|
Impacted routes: - `provinces.regencies` - `provinces.districts` - `provinces.villages` Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Provinces
Get all provinces
GET {APP_URL}/nusa/provinces
Query Params :
codes
numeric[]
optional
search
string
optional
Example :
GET http://localhost:8000/nusa/provinces
Show a province
GET {APP_URL}/nusa/provinces/{province}
Route Param :
{province}
province codeExample :
GET http://localhost:8000/nusa/provinces/33
Get all regencies in a province
GET {APP_URL}/nusa/provinces/{province}/regencies
Route Param :
{province}
province codeExample :
GET http://localhost:8000/nusa/provinces/33/regencies
Get all districts in a province
GET {APP_URL}/nusa/provinces/{province}/districts
Route Param :
{province}
province codeExample :
GET http://localhost:8000/nusa/provinces/33/districts
Get all villages in a province
GET {APP_URL}/nusa/provinces/{province}/villages
Route Param :
{province}
province codeExample :
GET http://localhost:8000/nusa/provinces/33/villages
Regencies
Get all regencies
GET {APP_URL}/nusa/regencies
Query Params :
codes
numeric[]
optional
search
string
optional
Example :
GET http://localhost:8000/nusa/regencies
Show a regency
GET {APP_URL}/nusa/regencies/{regency}
Route Param :
{regency}
regency codeExample :
GET http://localhost:8000/nusa/regencies/3375
Get all districts in a regency
GET {APP_URL}/nusa/regencies/{regency}/districts
Route Param :
{regency}
regency codeExample :
GET http://localhost:8000/nusa/regencies/3375/districts
Get all villages in a regency
GET {APP_URL}/nusa/regencies/{regency}/villages
Route Param :
{regency}
regency codeExample :
GET http://localhost:8000/nusa/regencies/3375/villages
Districts
Get all districts
GET {APP_URL}/nusa/districts
Query Params :
codes
numeric[]
optional
search
string
optional
Example :
GET http://localhost:8000/nusa/districts
Show a district
GET {APP_URL}/nusa/districts/{district}
Route Param :
{district}
district codeExample :
GET http://localhost:8000/nusa/districts/337503
Get all villages in a district
GET {APP_URL}/nusa/districts/{district}/villages
Route Param :
{district}
district codeExample :
GET http://localhost:8000/nusa/districts/337503/villages
Villages
Get all villages
GET {APP_URL}/nusa/villages
Query Params :
codes
numeric[]
optional
search
string
optional
Example :
GET http://localhost:8000/nusa/villages
Get a village
GET {APP_URL}/nusa/villages/{village}
Route Param :
{village}
village codeExample :
GET http://localhost:8000/nusa/villages/3375031006