Closed dongbohu closed 5 years ago
Forgot to mention: CORS
(Cross-Origin Resource Sharing) is enabled so that anybody can GET
from the URL <host>/api/v1/...
. It will make the frontend development easier.
Here is the output of
curl --silent 'http://34.233.249.241/api/v1/nodes/?search=multiple' | python -m json.tool
@dhimmel: If you have jq
installed (apt install jq
), you can also do:
curl --silent 'http://34.233.249.241/api/v1/nodes/?search=multiple' | jq
The output is nicer because it is in color.
This PR adds a simple REST API that supports
Node
search. Here is an example: http://34.233.249.241/api/v1/nodes/?search=abcBy default, it shows only 25 results. To get all of them, use the
limit
parameter: http://34.233.249.241/api/v1/nodes/?search=abc&limit=100000I also removed
frontend
test in CircleCI, because this repo is supposed to be backend only.