Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: updates the config related changes in schemas, CRUD and logic #101

Merged
merged 6 commits into from
Jan 8, 2025

Conversation

ashwiniag
Copy link
Member

@ashwiniag ashwiniag commented Jan 7, 2025

closes #32

Introduces

curl -X POST http://localhost:8000/api/v1/scannotify \
-H "Authorization: Bearer letsdoit" \
-H "Content-Type: application/json" \
-d '{"scan_id": "59d0f5d3-b70d-4527-b191-61849c5ab802", "hash": "somehash"}'

curl -X GET http://localhost:8000/api/v1/scannotify \
-H "Authorization: Bearer letsdoit" | jq '.'

curl -X GET "http://localhost:8000/api/v1/scannotify?scan_id=59d0f5d3-b70d-4527-b191-61849c5ab802" \
-H "Authorization: Bearer letsdoit" | jq '.'

curl -X PUT http://localhost:8000/api/v1/scannotify/59d0f5d3-b70d-4527-b191-61849c5ab802 \
-H "Authorization: Bearer letsdoit" \
-H "Content-Type: application/json" \
-d '{"hash": "updatedhashvalue"}'

curl -X DELETE http://localhost:8000/api/v1/scannotify/59d0f5d3-b70d-4527-b191-61849c5ab802 \
-H "Authorization: Bearer letsdoit"

@ashwiniag ashwiniag merged commit 01a1028 into main Jan 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: new config format
1 participant