Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Getting started

Xavier Godart edited this page Aug 27, 2016 · 9 revisions

Getting started

Gydro api gateway listens to port 8000 and admin api listens to port 8001.

Let's create a new api. You need to provide:

  • a name (which will act as a unique identifier)
  • a route for your service (it will be then available at http://localhost:8000/your_route
  • One or multiple backend urls for your services (if multiple backend are specified, Gydro will provide a round-robin load balancing between them).
$ curl -XPOST "http://localhost:8001/apis/" -d "name=service1&route=/service1&backends=http://service1.com"

Now let's change this and add multiple backends to our api:

$ curl -XPATCH "http://localhost:8001/apis/service1/" -d "backends=http://service1.com&backends=http://service1-2.com"

We will now try to reach our api:

$ curl -XGET "http://localhost:8000/service1/"

It should returns an error 401. It's perfectly normal.

TODO

Clone this wiki locally