|
2 | 2 | "openapi": "3.0.3", |
3 | 3 | "info": { |
4 | 4 | "title": "DefectDojo API v2", |
5 | | - "version": "2.56.1", |
| 5 | + "version": "2.56.2", |
6 | 6 | "description": "DefectDojo - Open Source vulnerability Management made easy. Prefetch related parameters/responses not yet in the schema." |
7 | 7 | }, |
8 | 8 | "paths": { |
|
4973 | 4973 | "items": { |
4974 | 4974 | "type": "string", |
4975 | 4975 | "enum": [ |
| 4976 | + "-active_finding_count", |
4976 | 4977 | "-host", |
4977 | 4978 | "-id", |
4978 | 4979 | "-product", |
| 4980 | + "active_finding_count", |
4979 | 4981 | "host", |
4980 | 4982 | "id", |
4981 | 4983 | "product" |
4982 | 4984 | ] |
4983 | 4985 | } |
4984 | 4986 | }, |
4985 | | - "description": "Ordering\n\n* `host` - Host\n* `-host` - Host (descending)\n* `product` - Product\n* `-product` - Product (descending)\n* `id` - Id\n* `-id` - Id (descending)", |
| 4987 | + "description": "Ordering\n\n* `host` - Host\n* `-host` - Host (descending)\n* `product` - Product\n* `-product` - Product (descending)\n* `id` - Id\n* `-id` - Id (descending)\n* `active_finding_count` - Active Findings Count\n* `-active_finding_count` - Active Findings Count (descending)", |
4986 | 4988 | "explode": false, |
4987 | 4989 | "style": "form" |
4988 | 4990 | }, |
@@ -23593,6 +23595,108 @@ |
23593 | 23595 | } |
23594 | 23596 | } |
23595 | 23597 | }, |
| 23598 | + "/api/v2/risk_acceptance/{id}/notes/": { |
| 23599 | + "get": { |
| 23600 | + "operationId": "risk_acceptance_notes_retrieve", |
| 23601 | + "parameters": [ |
| 23602 | + { |
| 23603 | + "in": "path", |
| 23604 | + "name": "id", |
| 23605 | + "schema": { |
| 23606 | + "type": "integer" |
| 23607 | + }, |
| 23608 | + "description": "A unique integer value identifying this risk_ acceptance.", |
| 23609 | + "required": true |
| 23610 | + } |
| 23611 | + ], |
| 23612 | + "tags": [ |
| 23613 | + "risk_acceptance" |
| 23614 | + ], |
| 23615 | + "security": [ |
| 23616 | + { |
| 23617 | + "cookieAuth": [] |
| 23618 | + }, |
| 23619 | + { |
| 23620 | + "basicAuth": [] |
| 23621 | + }, |
| 23622 | + { |
| 23623 | + "tokenAuth": [] |
| 23624 | + } |
| 23625 | + ], |
| 23626 | + "responses": { |
| 23627 | + "200": { |
| 23628 | + "content": { |
| 23629 | + "application/json": { |
| 23630 | + "schema": { |
| 23631 | + "$ref": "#/components/schemas/RiskAcceptanceToNotes" |
| 23632 | + } |
| 23633 | + } |
| 23634 | + }, |
| 23635 | + "description": "" |
| 23636 | + } |
| 23637 | + } |
| 23638 | + }, |
| 23639 | + "post": { |
| 23640 | + "operationId": "risk_acceptance_notes_create", |
| 23641 | + "parameters": [ |
| 23642 | + { |
| 23643 | + "in": "path", |
| 23644 | + "name": "id", |
| 23645 | + "schema": { |
| 23646 | + "type": "integer" |
| 23647 | + }, |
| 23648 | + "description": "A unique integer value identifying this risk_ acceptance.", |
| 23649 | + "required": true |
| 23650 | + } |
| 23651 | + ], |
| 23652 | + "tags": [ |
| 23653 | + "risk_acceptance" |
| 23654 | + ], |
| 23655 | + "requestBody": { |
| 23656 | + "content": { |
| 23657 | + "application/json": { |
| 23658 | + "schema": { |
| 23659 | + "$ref": "#/components/schemas/AddNewNoteOptionRequest" |
| 23660 | + } |
| 23661 | + }, |
| 23662 | + "application/x-www-form-urlencoded": { |
| 23663 | + "schema": { |
| 23664 | + "$ref": "#/components/schemas/AddNewNoteOptionRequest" |
| 23665 | + } |
| 23666 | + }, |
| 23667 | + "multipart/form-data": { |
| 23668 | + "schema": { |
| 23669 | + "$ref": "#/components/schemas/AddNewNoteOptionRequest" |
| 23670 | + } |
| 23671 | + } |
| 23672 | + }, |
| 23673 | + "required": true |
| 23674 | + }, |
| 23675 | + "security": [ |
| 23676 | + { |
| 23677 | + "cookieAuth": [] |
| 23678 | + }, |
| 23679 | + { |
| 23680 | + "basicAuth": [] |
| 23681 | + }, |
| 23682 | + { |
| 23683 | + "tokenAuth": [] |
| 23684 | + } |
| 23685 | + ], |
| 23686 | + "responses": { |
| 23687 | + "201": { |
| 23688 | + "content": { |
| 23689 | + "application/json": { |
| 23690 | + "schema": { |
| 23691 | + "$ref": "#/components/schemas/Note" |
| 23692 | + } |
| 23693 | + } |
| 23694 | + }, |
| 23695 | + "description": "" |
| 23696 | + } |
| 23697 | + } |
| 23698 | + } |
| 23699 | + }, |
23596 | 23700 | "/api/v2/roles/": { |
23597 | 23701 | "get": { |
23598 | 23702 | "operationId": "roles_list", |
|
31458 | 31562 | "type": "string" |
31459 | 31563 | } |
31460 | 31564 | }, |
| 31565 | + "active_finding_count": { |
| 31566 | + "type": "integer", |
| 31567 | + "readOnly": true |
| 31568 | + }, |
31461 | 31569 | "protocol": { |
31462 | 31570 | "type": "string", |
31463 | 31571 | "nullable": true, |
|
31521 | 31629 | } |
31522 | 31630 | }, |
31523 | 31631 | "required": [ |
| 31632 | + "active_finding_count", |
31524 | 31633 | "endpoint_params", |
31525 | 31634 | "findings", |
31526 | 31635 | "id" |
|
47041 | 47150 | "owner" |
47042 | 47151 | ] |
47043 | 47152 | }, |
| 47153 | + "RiskAcceptanceToNotes": { |
| 47154 | + "type": "object", |
| 47155 | + "properties": { |
| 47156 | + "risk_acceptance_id": { |
| 47157 | + "type": "integer", |
| 47158 | + "nullable": true |
| 47159 | + }, |
| 47160 | + "notes": { |
| 47161 | + "type": "array", |
| 47162 | + "items": { |
| 47163 | + "$ref": "#/components/schemas/Note" |
| 47164 | + } |
| 47165 | + } |
| 47166 | + }, |
| 47167 | + "required": [ |
| 47168 | + "notes", |
| 47169 | + "risk_acceptance_id" |
| 47170 | + ] |
| 47171 | + }, |
47044 | 47172 | "Role": { |
47045 | 47173 | "type": "object", |
47046 | 47174 | "properties": { |
|
0 commit comments