Feature/dev api#4
Merged
Merged
Conversation
…r full test coverage
…r full test coverage
…nto feature/dev-api
…for CiberWebScan API
…mproved validation
…nloadTokenResponse and DownloadInfo models
…ns and integration tests
…g token generation, validation, and cleanup
… both async and sync contexts
…ctor cleanup scheduler tests for async support
…, and scrape endpoints
…ield and duplication
… wrapper for consistency
…stallation instructions
Co-authored-by: Copilot <copilot@github.com>
…uration Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements a complete REST API for CiberWebScan using FastAPI, bringing the API from development to a functional Beta state. The implementation includes:
/api/analyze- Security analysis with detailed configuration options/api/attack- URL vulnerability testing with configurable payloads/api/scrape- Single and batch URL scraping capabilities/api/download- Token-based file download system with automatic cleanup/api/config- Configuration management endpoints/healthand/health/ready- Health check endpointsFollow-up Note
Currently, the
quickcommand exists only in the CLI (ciberwebscan quick <url>) and performs combined scraping + analysis in a single operation. There is no equivalent common endpoint in the API, as the design separates concerns across/api/scrapeand/api/analyze. Future improvements will evaluate:/api/quickendpoint that combines both operationsType of Change
Checklist
Testing
devandapioptional dependencies