Comments (6)
I think it's a great idea, but haven't looked yet into the details if it supports all operations. Not sure if everything is in the swagger spec. I remember when browsing the swagger docs on defect dojo some api features are not there.
from defectdojo_api.
Indeed, but I downloaded with curl using token in headers, so I got details that was not available with the browser
curl -X GET '<endpoint>/api/v2/doc/?format=openapi' -H 'Authorization: Token<token>'
from defectdojo_api.
If the swagger is well configured in django-DefectDojo/dojo/api_v2/views.py I think it will not be a problem.
I saw some methods(@action) in ViewSet without swagger_auto_schema, so there are responses and request_bodys wrong.
Example:
api/v2/finding/ = are ok
api/v2/finding//notes/ = are wrong
We fixing that, I think all operations will work
from defectdojo_api.
Hi @valentijnscholten I fixed here DefectDojo/django-DefectDojo#2488
from defectdojo_api.
I created a similar project a while ago: https://github.com/alles-klar/defectdojo-api-v2-client. Generally it works fine but there are some bugs in the defectdojo swagger documentation. So for a stable api client we need to write a lot of tests. @edersonbrilhante do you have an idea how to automatically generate tests?
from defectdojo_api.
@alles-klar My PR fixing some bugs defectdojo swagger documentation was merged to dev.
I am not sure about these tests.
from defectdojo_api.
Related Issues (20)
- create_finding is incomplete
- list_engagements defectdojo_apiv2.py product_in vs product_id
- Pip version is incorrect
- CI/CD defectdojo api environment for the test
- pip3 does not have defectdojo_apiv2 HOT 2
- Uncaught Exception from Nessus Scan Import without Filename HOT 2
- defect dojo CI CD not start
- apiv2: finding filters title__contains and severity__contains are ignored HOT 1
- apiv2: set_finding fails HOT 2
- create_finding error : found_by field is required HOT 2
- Some apiv2 fields ignored when creating finding HOT 6
- defectdojo_apiv2.upload_scan() results in a 400 Bad Request HOT 4
- python does not have defectdojo_apiv2 HOT 1
- remove defectdojo_api from pip repository HOT 3
- Importing scans fails for Generic Findings Import due to lack of file extension
- API version 2 No Longer Works with Generic Findings Import
- Booleans parameters in list_findings not being added.
- duplicate methods/functions, in Path: defectdojo_api/defectdojo_apiv2.py (L 399 and L 416)
- Add support for Swagger HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from defectdojo_api.