jeyroik/extas-bv-api

There is no license information available for the latest version (1.0.1) of this package.

Extas bv api package

1.0.1 2020-03-25 15:37 UTC

This package is auto-updated.

Last update: 2024-10-26 01:40:17 UTC


README

Extas busyness value micro-service with crud + calculations api.

install

install plugins

# vendor/bin/extas i

generate json-rpc specs

# vendor/bin/extas jsonrpc -e 1 -s src/configs/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\":\"category.create\", \"data\":{...}}"