Name: docker-apiaxle-demo
Owner: Mapzen
Description: Demo reference implementation
Created: 2016-03-09 20:56:23.0
Updated: 2018-02-17 02:58:08.0
Pushed: 2016-03-14 19:34:57.0
Homepage: null
Size: 6
Language: Nginx
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a reference implementation of how to setup apiaxle in your environment
Update your /etc/hosts file
0.0.1 apiaxle-api service-1 service-2
ash
er-compose build
er-compose up
On your browser you can open a ad-hoc admin screen where you can edit some of the api. This is application does not allow editing of all fields and is just intended for demonstration purposes.
://apiaxle-api
'http://apiaxle-api/v1/apis'
-H 'content-type: application/json' \
POST \
-d '{"endPoint":"fake-services:8001"}' \
'http://apiaxle-api/v1/api/service-1'
-H 'content-type: application/json' \
POST \
-d '{"endPoint":"fake-services:8002"}' \
'http://apiaxle-api/v1/api/service-2'
-H 'content-type: application/json' \
POST \
-d '{}' \
'http://apiaxle-api/v1/key/something-special'
-H 'content-type: application/json' \
PUT \
'http://localhost/v1/api/service-1/linkkey/something-special'
-H 'content-type: application/json' \
PUT \
'http://localhost/v1/api/service-2/linkkey/something-special'
'http://apiaxle-api/v1/api/service-1/stats'