Skip to content

Commit f7b9081

Browse files
committed
fix integration errors
1 parent 5f1d40b commit f7b9081

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

api/src/main/java/io/sentrius/sso/controllers/api/IntegrationApiController.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.springframework.stereotype.Controller;
2424
import org.springframework.web.bind.annotation.GetMapping;
2525
import org.springframework.web.bind.annotation.PostMapping;
26+
import org.springframework.web.bind.annotation.RequestBody;
2627
import org.springframework.web.bind.annotation.RequestMapping;
2728
import org.springframework.web.bind.annotation.RequestParam;
2829

@@ -58,7 +59,7 @@ protected IntegrationApiController(
5859
@Endpoint(description = "Adding a github integration so github can be used as an external data provider")
5960
public ResponseEntity<ExternalIntegrationDTO> addGitHubIntegration(HttpServletRequest request,
6061
HttpServletResponse response,
61-
ExternalIntegrationDTO integrationDTO)
62+
@RequestBody ExternalIntegrationDTO integrationDTO)
6263
throws JsonProcessingException, GeneralSecurityException {
6364

6465
var json = JsonUtil.MAPPER.writeValueAsString(integrationDTO);
@@ -77,7 +78,7 @@ public ResponseEntity<ExternalIntegrationDTO> addGitHubIntegration(HttpServletRe
7778
@PostMapping("/jira/add")
7879
@Endpoint(description = "Adding a jira integration so jira can be used as an external data provider")
7980
public ResponseEntity<ExternalIntegrationDTO> addJiraIntegration(HttpServletRequest request, HttpServletResponse response,
80-
ExternalIntegrationDTO integrationDTO)
81+
@RequestBody ExternalIntegrationDTO integrationDTO)
8182
throws JsonProcessingException, GeneralSecurityException {
8283

8384

@@ -98,7 +99,7 @@ public ResponseEntity<ExternalIntegrationDTO> addJiraIntegration(HttpServletRequ
9899
@Endpoint(description = "Adding an OpenAI integration so OpenAI can be used as an external data provider")
99100
public ResponseEntity<ExternalIntegrationDTO> addOpenaiIntegration(HttpServletRequest request,
100101
HttpServletResponse response,
101-
ExternalIntegrationDTO integrationDTO)
102+
@RequestBody ExternalIntegrationDTO integrationDTO)
102103
throws JsonProcessingException, GeneralSecurityException {
103104

104105
var json = JsonUtil.MAPPER.writeValueAsString(integrationDTO);
@@ -154,7 +155,7 @@ public ResponseEntity<?> listGitHubIntegrations(HttpServletRequest request,
154155
@Endpoint(description = "Adding a Slack integration for team communication workflows")
155156
public ResponseEntity<ExternalIntegrationDTO> addSlackIntegration(HttpServletRequest request,
156157
HttpServletResponse response,
157-
ExternalIntegrationDTO integrationDTO)
158+
@RequestBody ExternalIntegrationDTO integrationDTO)
158159
throws JsonProcessingException, GeneralSecurityException {
159160

160161
var json = JsonUtil.MAPPER.writeValueAsString(integrationDTO);
@@ -173,7 +174,7 @@ public ResponseEntity<ExternalIntegrationDTO> addSlackIntegration(HttpServletReq
173174
@Endpoint(description = "Adding a database integration for data integration and analytics")
174175
public ResponseEntity<ExternalIntegrationDTO> addDatabaseIntegration(HttpServletRequest request,
175176
HttpServletResponse response,
176-
ExternalIntegrationDTO integrationDTO)
177+
@RequestBody ExternalIntegrationDTO integrationDTO)
177178
throws JsonProcessingException, GeneralSecurityException {
178179

179180
var json = JsonUtil.MAPPER.writeValueAsString(integrationDTO);
@@ -192,7 +193,7 @@ public ResponseEntity<ExternalIntegrationDTO> addDatabaseIntegration(HttpServlet
192193
@Endpoint(description = "Adding a Microsoft Teams integration for collaboration workflows")
193194
public ResponseEntity<ExternalIntegrationDTO> addTeamsIntegration(HttpServletRequest request,
194195
HttpServletResponse response,
195-
ExternalIntegrationDTO integrationDTO)
196+
@RequestBody ExternalIntegrationDTO integrationDTO)
196197
throws JsonProcessingException, GeneralSecurityException {
197198

198199
var json = JsonUtil.MAPPER.writeValueAsString(integrationDTO);
@@ -211,7 +212,7 @@ public ResponseEntity<ExternalIntegrationDTO> addTeamsIntegration(HttpServletReq
211212
@Endpoint(description = "Adding a Filesystem MCP server for file operations via MCP")
212213
public ResponseEntity<ExternalIntegrationDTO> addFilesystemMCPIntegration(HttpServletRequest request,
213214
HttpServletResponse response,
214-
ExternalIntegrationDTO integrationDTO)
215+
@RequestBody ExternalIntegrationDTO integrationDTO)
215216
throws JsonProcessingException, GeneralSecurityException {
216217

217218
var json = JsonUtil.MAPPER.writeValueAsString(integrationDTO);
@@ -230,7 +231,7 @@ public ResponseEntity<ExternalIntegrationDTO> addFilesystemMCPIntegration(HttpSe
230231
@Endpoint(description = "Adding a PostgreSQL MCP server for database operations via MCP")
231232
public ResponseEntity<ExternalIntegrationDTO> addPostgresqlMCPIntegration(HttpServletRequest request,
232233
HttpServletResponse response,
233-
ExternalIntegrationDTO integrationDTO)
234+
@RequestBody ExternalIntegrationDTO integrationDTO)
234235
throws JsonProcessingException, GeneralSecurityException {
235236

236237
var json = JsonUtil.MAPPER.writeValueAsString(integrationDTO);
@@ -249,7 +250,7 @@ public ResponseEntity<ExternalIntegrationDTO> addPostgresqlMCPIntegration(HttpSe
249250
@Endpoint(description = "Adding a Slack MCP server for messaging operations via MCP")
250251
public ResponseEntity<ExternalIntegrationDTO> addSlackMCPIntegration(HttpServletRequest request,
251252
HttpServletResponse response,
252-
ExternalIntegrationDTO integrationDTO)
253+
@RequestBody ExternalIntegrationDTO integrationDTO)
253254
throws JsonProcessingException, GeneralSecurityException {
254255

255256
var json = JsonUtil.MAPPER.writeValueAsString(integrationDTO);
@@ -268,7 +269,7 @@ public ResponseEntity<ExternalIntegrationDTO> addSlackMCPIntegration(HttpServlet
268269
@Endpoint(description = "Adding a Playwright MCP server for browser automation via MCP")
269270
public ResponseEntity<ExternalIntegrationDTO> addPlaywrightMCPIntegration(HttpServletRequest request,
270271
HttpServletResponse response,
271-
ExternalIntegrationDTO integrationDTO)
272+
@RequestBody ExternalIntegrationDTO integrationDTO)
272273
throws JsonProcessingException, GeneralSecurityException {
273274

274275
var json = JsonUtil.MAPPER.writeValueAsString(integrationDTO);
@@ -287,7 +288,7 @@ public ResponseEntity<ExternalIntegrationDTO> addPlaywrightMCPIntegration(HttpSe
287288
@Endpoint(description = "Adding a Fetch MCP server for web content fetching via MCP")
288289
public ResponseEntity<ExternalIntegrationDTO> addFetchMCPIntegration(HttpServletRequest request,
289290
HttpServletResponse response,
290-
ExternalIntegrationDTO integrationDTO)
291+
@RequestBody ExternalIntegrationDTO integrationDTO)
291292
throws JsonProcessingException, GeneralSecurityException {
292293

293294
var json = JsonUtil.MAPPER.writeValueAsString(integrationDTO);

0 commit comments

Comments
 (0)