Nebo15 / annon.api

Configurable API gateway that acts as a reverse proxy with a plugin system.
http://docs.annon.apiary.io/
MIT License
331 stars 25 forks source link

Proxy plugin add doesn't work #283

Open themotu opened 5 years ago

themotu commented 5 years ago

Steps to reproduce:

docker-compose up

add api add plugin - proxy

result: proxy add doesn't work

sql-and-r commented 5 years ago

Same behavior. Noted errors in browser JavaScript Console:

Failed to load resource: the server responded with a status of 422 (Unprocessable Entity).

{"meta":{"url":"http://api:4001/apis/acff62fe-a8bf-4b63-8d4f-fed18c7b14cc/plugins/proxy","type":"object","request_id":"2lgfv11oco18dd2d080002d1","code":404},"error":{"type":"not_found"}}

API Server is responding on port 4001.

$ curl -iLs http://localhost:4001/apis| grep HTTP
HTTP/1.1 200 OK
AndrewDryga commented 5 years ago

I think our web interface is slightly behind API functionality and need to be updated, but I can confirm that annonktl works just fine. (API request structure was changed in latest release.)

Other option is to use older Annon version in your docker-compose, before request format is changed.