@@ -393,6 +393,13 @@ export class BackendStack extends cdk.Stack {
393
393
options : integrationOptions ,
394
394
} ) ;
395
395
396
+ const createReportIntegration = new apigateway . Integration ( {
397
+ type : apigateway . IntegrationType . HTTP_PROXY ,
398
+ integrationHttpMethod : 'POST' ,
399
+ uri : `${ serviceUrl } /api/reports` ,
400
+ options : integrationOptions ,
401
+ } ) ;
402
+
396
403
const getLatestReportIntegration = new apigateway . Integration ( {
397
404
type : apigateway . IntegrationType . HTTP_PROXY ,
398
405
integrationHttpMethod : 'GET' ,
@@ -432,6 +439,7 @@ export class BackendStack extends cdk.Stack {
432
439
433
440
// Add methods to the resources
434
441
reportsResource . addMethod ( 'GET' , getReportsIntegration , methodOptions ) ;
442
+ reportsResource . addMethod ( 'POST' , createReportIntegration , methodOptions ) ;
435
443
latestResource . addMethod ( 'GET' , getLatestReportIntegration , methodOptions ) ;
436
444
docsResource . addMethod ( 'GET' , getDocsIntegration , methodOptions ) ;
437
445
// For path parameter methods, add the request parameter configuration
0 commit comments