/
Uploading an OpenAPI/Swagger Definition via API
Uploading an OpenAPI/Swagger Definition via API
The following steps allow organizations to automatically upload API definitions (OpenAPI, Swagger) to the Data Theorem platform, in order to onboard and scan the corresponding APIs.
Step 1: Retrieving an API key
You will first need to retrieve an API key from the Data Theorem portal, at https://www.securetheorem.com/sdlc/api_access. The API key should have the "API Security Results API" setting enabled:
Step 2: Uploading an API definition using curl
The following curl
command can then be used to upload an OpenAPI or Swagger definition to the Data Theorem platform, in order to onboard and scan the corresponding APIs:
curl \
-H "Authorization: APIKey <enter your API key>" \
-d @openapi.json \
"https://api.securetheorem.com/apis/api_security/results/v1beta1/openapi_definitions"
, multiple selections available,
Related content
API Scanning: CI/CD Integration
API Scanning: CI/CD Integration
Read with this
Configure Self-Managed GitLab For On-Prem Scanning
Configure Self-Managed GitLab For On-Prem Scanning
More like this
Webhook Integration
Webhook Integration
More like this
Connect Data Theorem SAST to GitLab
Connect Data Theorem SAST to GitLab
More like this
Cloud Integration: AWS Organization Onboarding
Cloud Integration: AWS Organization Onboarding
More like this
SAML
More like this