|
Download sdks/python/docs/ScannerApi.md from cryptorugmunch/rugmuncher-backend: direct link, hf CLI and curl.
- Browser
- Download file 2.59 kB
-
https://huggingface.co/cryptorugmunch/rugmuncher-backend/resolve/main/sdks/python/docs/ScannerApi.md
- Command line
-
hf download hf://cryptorugmunch/rugmuncher-backend/sdks/python/docs/ScannerApi.md
-
curl -L -o ScannerApi.md https://huggingface.co/cryptorugmunch/rugmuncher-backend/resolve/main/sdks/python/docs/ScannerApi.md
2.59 kB
rugmunch.ScannerApi
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| scan_api_v1_scanner_scan_post | POST /api/v1/scanner/scan | Scan |
scan_api_v1_scanner_scan_post
ScanResponse scan_api_v1_scanner_scan_post(app_domain_scanner_models_scan_request)
Scan
Full token scan. Multi-module. Returns Pydantic response.
The legacy /api/v1/scanner/scan (and /api/v1/token/scan) are still served — they take priority on the same path during strangelfig.
Example
import rugmunch
from rugmunch.models.app_domain_scanner_models_scan_request import AppDomainScannerModelsScanRequest
from rugmunch.models.scan_response import ScanResponse
from rugmunch.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = rugmunch.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with rugmunch.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = rugmunch.ScannerApi(api_client)
app_domain_scanner_models_scan_request = rugmunch.AppDomainScannerModelsScanRequest() # AppDomainScannerModelsScanRequest |
try:
# Scan
api_response = api_instance.scan_api_v1_scanner_scan_post(app_domain_scanner_models_scan_request)
print("The response of ScannerApi->scan_api_v1_scanner_scan_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ScannerApi->scan_api_v1_scanner_scan_post: %s\n" % e)
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| app_domain_scanner_models_scan_request | AppDomainScannerModelsScanRequest |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]