jeyroik / kb-api
There is no license information available for the latest version (0.1.0) of this package.
Kilobook api
0.1.0
2020-01-20 06:40 UTC
Requires
This package is auto-updated.
Last update: 2024-10-20 17:12:42 UTC
README
Kilobook api
install
install plugins
# vendor/bin/extas i
generate api specs
# vendor/bin/extas jsonrpc -s extas.json
install specs
# vendor/bin/extas i
usage
set EXTAS__BASE_PATH
# export EXTAS__BASE_PATH=/your/path
run server
# php -S 0.0.0.0:8080 -t vendor/jeyroik/extas-jsonrpc/src/public
check specs
curl -X POST localhost:8080/specs -d "{\"id\":\"request id\", \"method\":\"operation.all\"}"
use api
Warning: fill the data before using
curl -X POST localhost:8080/api/jsonrpc -d "{\"id\":\"request id\", \"method\":\"book.create\", \"data\":{...}}"