Skip to main content
This script creates a FastAPI server that simulates a target system with users, groups, and entitlements endpoints to test a Lumos connector against. To use:
  1. Create a mock_api_server.py with the file contents below. This should be outside of your mock connector directory, to not push this server into the production package.
  2. In a virtual environment install dependencies: pip install fastapi uvicorn pydantic pydantic[email]
  3. Run: uvicorn mock_api_server:app —reload
  4. Server will run on http://localhost:8000 (You can supply your own port via the --port option, but don’t forget to update your connector client base URL)
API endpoints:

Mock API Server file:
Python