1.15.1 • Published 7 years ago

apiaxle-proxy v1.15.1

Weekly downloads
288
License
-
Repository
-
Last release
7 years ago

ApiAxle

Gitter

http://apiaxle.com

A free, locally hosted API management solution. A proxy for your api, statistics for your api & a powerful api of its own.

There are three components which make up the Api Axle system:

The proxy

$ npm install apiaxle-proxy

This is the aspect of the system which does the actual proxying. It sits in front of your API and does the authentication, key checking, queries per day/second checking. This is the bit you want if you want anything. More detail on the main site.

The API

$ npm install apiaxle-api

This is the (optional) API for managing users, keys and endpoints. Once installed, run it with:

$ apiaxle-api

The REPL

$ npm install apiaxle-repl

A way to administer your ApiAxle installation via a command line. Once installed, run it with:

$ apiaxle

You then get a prompt where you can type help to find out more.

The base libs

This is a set of libraries which is required for the above components.


Installation

Check the main site for more detailed installation instructions.

Build

  • master: Build Status
  • develop: Build Status

Docker

Docker image

This repository is auto-built and published as apiaxle/apiaxle.

NOTE: If using this via Docker Compose, use the version 2 syntax for your docker-compose.yml file.

Dockerfiles

This project uses two Dockerfiles, one for production usage named Dockerfile, and a second for development of ApiAxle itself, named Dockerfile-development. Docker Compose is configured to build the development version for you, see below for examples.

Environment Variables

Environment variables can be used to configure NODE_ENV, REDIS_HOST, REDIS_PORT, API_NAME_REGEX and DEBUG_MODE. Below are defaults for production:

  • NODE_ENV = production
  • REDIS_HOST = redis
  • REDIS_PORT = 6379
  • API_NAME_REGEX = ^(.+?)\\.api\\. (extra backslash required for JSON)
  • DEBUG_MODE = false

Start services

docker-compose up -d redis
docker-compose up -d api
docker-compose up -d proxy

Run repl

docker-compose run repl

Run tests

docker-compose run repl test

Enter container

docker-compose run --entrypoint sh repl

Example adding an api and key:

api acme create endPoint='localhost:8000'
key 1234 create
api acme linkkey 1234

Example curl:

curl localhost:3000?api_key=1234 -H 'Host: acme.api.localhost'
1.15.1

7 years ago

1.15.0

7 years ago

1.14.0

8 years ago

1.12.35

9 years ago

1.12.34

9 years ago

1.12.33

10 years ago

1.12.32

10 years ago

1.12.31

10 years ago

1.12.30

10 years ago

1.12.29

10 years ago

1.12.28

10 years ago

1.12.27

10 years ago

1.12.26

10 years ago

1.12.25

10 years ago

1.12.24

10 years ago

1.12.23

10 years ago

1.12.22

10 years ago

1.12.21

10 years ago

1.12.20

10 years ago

1.12.19

10 years ago

1.12.18

10 years ago

1.12.17

10 years ago

1.12.16

10 years ago

1.12.15

10 years ago

1.12.13

10 years ago

1.12.12

10 years ago

1.12.11

10 years ago

1.12.10

10 years ago

1.12.8

10 years ago

1.12.7

10 years ago

1.12.6

10 years ago

1.12.5

10 years ago

1.12.4

10 years ago

1.12.3

10 years ago

1.12.2

10 years ago

1.12.1

10 years ago

1.12.0

10 years ago

1.11.7

11 years ago

1.11.6

11 years ago

1.11.5

11 years ago

1.11.4

11 years ago

1.11.3

11 years ago

1.11.2

11 years ago

1.11.1

11 years ago

1.11.0

11 years ago

1.10.3

11 years ago

1.10.2

11 years ago

1.10.1

11 years ago

1.10.0

11 years ago

1.9.34

11 years ago

1.9.33

11 years ago

1.9.32

11 years ago

1.9.31

11 years ago

1.9.30

11 years ago

1.9.29

11 years ago

1.9.28

11 years ago

1.9.27

11 years ago

1.9.26

11 years ago

1.9.25

11 years ago

1.9.24

11 years ago

1.9.23

11 years ago

1.9.22

11 years ago

1.9.21

11 years ago

1.9.20

11 years ago

1.9.19

11 years ago

1.9.18

11 years ago

1.9.17

11 years ago

1.9.16

11 years ago

1.9.15

11 years ago

1.9.14

11 years ago

1.9.13

11 years ago

1.9.12

11 years ago

1.9.11

11 years ago

1.9.10

11 years ago

1.9.9

11 years ago

1.9.8

11 years ago

1.9.7

11 years ago

1.9.6

11 years ago

1.9.5

11 years ago

1.9.4

11 years ago

1.9.3

11 years ago

1.9.2

11 years ago

1.9.1

11 years ago

0.9.0

11 years ago

0.8.5

11 years ago

0.8.4

11 years ago

0.8.3

11 years ago

0.8.2

11 years ago

0.8.1

11 years ago

0.8.0

11 years ago

0.7.1

11 years ago

0.7.0

11 years ago

0.6.0

11 years ago

0.5.0

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago