blob: 76079dcdfd15a29f78c58c11e78bb08e60d571a4 [file] [log] [blame]
Matteo Scandolo431781c2017-09-06 15:33:07 -07001swagger: swagger_clean swagger_docs swagger_serve_spec
2
3swagger_docs:
4 python scripts/swagger_docs.py
5
6swagger_clean:
7 rm -rf swagger/specs/*
8
9swagger_serve_spec:
10 http-server --cors ./swagger
11
12# HOW TO
13# - load the virtual env (https://guide.opencord.org/xos/dev/local_env.html)
14# - run `make`
15# - open the browser at `http://127.0.0.1:8080/ui`
16# - you'll see the 'core' apis
17# - you can see a list of available apis at `http://127.0.0.1:8080/specs/`
18# - just replace the swagger file (top bar) with another one to see different APIs (to be improved)