The API is designed to work in conjunction with the SCANOSS Engine to provide an API for Open Source scanning. It is built on top of WAYUU Web Server
The API defines the /api/scan/direct
endpoint that can be used to scan SCANOSS WFP files. One easy way to operate with this API endpoint is via one of the availables clients:
You can test this API using the openapi documentation available in: https://docs.osskb.org/
Make sure to have net-tools installed.
This project depens on Wayuu shared library. When cloning make sure that you run make install-wayuu
to install the lastest release of Wayuu.
SCANOSS doesn't need any external libraries other than standard Linux GNU extensions as well as OpenSSL and libcrypto. You can build SCANOSS API easily with GCC and Make.
make
: Builds the scanoss-api
binary.make test
: Executes the unit tests. Run make install
and the scanoss-api
binary will be copied to /usr/bin
by default.
If you are using Linux you can do a simple systemd script to run the API on startup. Otherwise you can run the binary.
127.0.0.1
).4443
)./etc/wayuu
).ScanOSS API uses the very simple snow for unit tests.
To run all tests: make test
If you want to run all tests for a component, for instance, project
, you can do it like this: ARGS=project make test
. Or specifically running the binary executable ./test-scanoss-api project
.