Algorithmic mock data engine. 390 types, stop working with random strings, use Mock Jutsu REST API.
2.1K
Algorithmic mock data engine. 390+ types, 6 locales, zero dependencies. Cryptographically valid TCKN, IBAN, Luhn, BIC, MRZ, NFC, and more.
390 ready-to-run requests organized by category. Import and hit Send.
https://github.com/altansayan/mock-jutsu-api/tree/main/.postman/collections/mock-jutsu.postman_collection.json
For full details on all functions, please refer to the documentation:
docker run -p 8000:8000 altansezerayan/mock-jutsu:latest
API: http://localhost:8000
Swagger UI: http://localhost:8000/docs
Endpoints
ββββββββββ¬ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ
β Method β Path β Description β
ββββββββββΌββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β GET β /generate/{type} β Single value β
ββββββββββΌββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β GET β /bulk/{type}?count=10 β Multiple values β
ββββββββββΌββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β GET β /profile β Full person profile β
ββββββββββΌββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β GET β /company β Company profile β
ββββββββββΌββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β POST β /template β Structured records from schema β
ββββββββββΌββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β POST β /export β Export as JSON / CSV / SQL β
ββββββββββΌββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β GET β /list β All supported types β
ββββββββββΌββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββ€
β GET β /health β Health check β
ββββββββββ΄ββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββ
Examples
# Single TCKN
curl http://localhost:8000/generate/tckn
# 50 IBANs (TR locale)
curl "http://localhost:8000/bulk/iban?count=50&locale=TR"
# Masked credit card (PCI DSS)
curl "http://localhost:8000/generate/pan?mask=true"
# Export CSV
curl -X POST http://localhost:8000/export \
-H "Content-Type: application/json" \
-d '{"schema_map":{"id":"uuid","name":"fullname","iban":"iban"},"count":100,"format":"csv"}'
Environment Variables
βββββββββββββββββββββββββββ¬ββββββββββ¬βββββββββββββββββββββββββββββββββββ
β Variable β Default β Description β
βββββββββββββββββββββββββββΌββββββββββΌβββββββββββββββββββββββββββββββββββ€
β GRANIAN_WORKERS β 4 β Worker process count β
βββββββββββββββββββββββββββΌββββββββββΌβββββββββββββββββββββββββββββββββββ€
β GRANIAN_PORT β 8000 β Port to listen on β
βββββββββββββββββββββββββββΌββββββββββΌβββββββββββββββββββββββββββββββββββ€
β GRANIAN_URL_PATH_PREFIX β β β Sub-path if behind reverse proxy β
βββββββββββββββββββββββββββ΄ββββββββββ΄βββββββββββββββββββββββββββββββββββ
Behind a Reverse Proxy (nginx / Caddy)
services:
mock-jutsu:
image: altansezerayan/mock-jutsu:latest
expose:
- "8000"
environment:
- GRANIAN_URL_PATH_PREFIX=/api
networks:
- proxy_network
Links
- GitHub: https://github.com/altansayan/mock-jutsu-api
- HOW-TO Guides: https://altansayan.github.io/mock-jutsu-api
- License: MIT - https://github.com/altansayan/mock-jutsu-api/blob/main/LICENSE
---
Content type
Image
Digest
sha256:ea42f5d43β¦
Size
62.1 MB
Last updated
2 months ago
docker pull altansezerayan/mock-jutsu