Skip to content

This wraps multiple STIX 2 Pattern librarys in FLASK for inclusion in Unfetter

License

Notifications You must be signed in to change notification settings

unfetter-discover/stix2pattern

Repository files navigation

STIX2Pattern Web Service

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

Build With Docker

You can build and run this docker container with the following commands

  • docker build . -t stix-pattern
  • docker run -it stix-pattern

Run Tests

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

About

This wraps multiple STIX 2 Pattern librarys in FLASK for inclusion in Unfetter

Resources

License

Stars

Watchers

Forks

Packages

No packages published