This project builds a FLASK project around the stix2-validator and stix-pattern-translator projects.
The API for the web services can be found at the Unfetter Swagger Hub project, called the stix2pattern api
You can build and run this docker container with the following commands
- docker build . -t stix-pattern
- docker run -it stix-pattern
PyTest is implemented to test the API. It is recommended you create a python virtual environment first. You can run those tests by doing the following:
- Install Python 3.6
- RUN pip3 install flask
- RUN pip3 install stix2-validator
- RUN pip3 install stix-pattern-translator
- RUN pytest test.py -sv