toedter / hal-explorer

An API explorer for RESTful Hypermedia APIs using HAL or HAL-FORMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Relative urls are not correctly expanded

evert opened this issue · comments

Example:

http://hypermedia-movies-demo.herokuapp.com/hal-explorer/index.html#theme=Cosmo&uri=https://todo-api.curveballjs.org/

To test, do a GET request on one of the links.

(this is probably a stretch, but I probably can't convince you to give https://github.com/badgateway/ketting a shot for this project? You might like it and we can combine efforts!)

Thx @evert , I will take a look at it.

Fixed. You can browse your API now (the demo is always using the latest snapshot of HAL Explorer):
http://hypermedia-movies-demo.herokuapp.com/hal-explorer/index.html#theme=Cosmo&uri=https://todo-api.curveballjs.org/
This will be in the next release.

Regarding ketting: I will take a closer look next weekend.

One little thing: todo-api.curveballjs.org/ returns content-type application/json, even though it contains _links.