mapzen/docker-apiaxle-demo

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Apiaxle demo setup

This is a reference implementation of how to setup apiaxle in your environment

Installation

Update your /etc/hosts file

0.0.1 apiaxle-api service-1 service-2
ash
er-compose build
er-compose up
Setup project and keys

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
Using the 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'
Get some stats
 'http://apiaxle-api/v1/api/service-1/stats'

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.