-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[backend] Change external reference resolution for OpenCTI integration #1048
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1048 +/- ##
============================================
+ Coverage 25.87% 26.17% +0.30%
- Complexity 1006 1011 +5
============================================
Files 450 451 +1
Lines 10561 10566 +5
Branches 513 513
============================================
+ Hits 2733 2766 +33
+ Misses 7765 7737 -28
Partials 63 63 ☔ View full report in Codecov by Sentry. |
@GetMapping(SCENARIO_URI + "/{scenarioId}/exercises") | ||
@PreAuthorize("isScenarioObserver(#scenarioId)") | ||
public Iterable<ExerciseSimple> scenarioExercises(@PathVariable @NotBlank final String scenarioId) { | ||
Scenario scenario = this.scenarioService.scenario(scenarioId); | ||
return scenario.getExercises().stream().map(ExerciseSimple::fromExercise).toList(); | ||
} | ||
|
||
// endregion | ||
@GetMapping(SCENARIO_URI + "/external_reference/{externalReferenceId}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefix by /opencti and add versioning (v1)
Keep the old URL with deprecated method
Add swagger doc to explain which endpoint is supported
Release note to be updated with needed OpenCTI version XXX
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested locally
Proposed changes
OpenCTI should get the latest ended simulation based on scenarios instead of the latest simulation based on the first scenario.
Related issues
Testing
OpenCTI PR -> OpenCTI-Platform/opencti#7233