mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-25 23:19:28 +00:00
mike cullerton
1138d45183
The 3 files from cr-connect ldap.
Most of my changes are in ldap_service. I added users_as_json method, commented out an unused method, and created my own search string. The model in ldap.py is unchanged. In ldap_response, I added a fake entry to test multiple returned values.
sartography/protocol-builder-mock
UVA IRB Protocol Builder Mock
Requirements
- Python 3
- pip (for python 3)
- pipenv (just run pip install pipenv)
Running these examples
pipenv run python run.py
This will start a webserver on localhost at port 5001. To see the api, you can visit http://localhost:5001/pb/ui
For future reference, these are the steps Sartography is taking to set up Mock Services:
- mdkir project
- cd project
- pipenv install
- pipenv install flask
- pipenv install connexion
- place your swagger/openapi file in the root directory
- add methods to return example data in the app.py file.
Deploying to staging
We don't have a travis / test environment set up for this yet, no tests but you can build and publish it with:
docker image build -t sartography/protocol-builder-mock:latest .
docker push sartography/protocol-builder-mock:latest
Description
Languages
Python
86.7%
HTML
4.9%
Shell
4%
SCSS
3.7%
Dockerfile
0.4%
Other
0.3%