@@ -393,6 +393,13 @@ export class BackendStack extends cdk.Stack {
393393 options : integrationOptions ,
394394 } ) ;
395395
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+
396403 const getLatestReportIntegration = new apigateway . Integration ( {
397404 type : apigateway . IntegrationType . HTTP_PROXY ,
398405 integrationHttpMethod : 'GET' ,
@@ -432,6 +439,7 @@ export class BackendStack extends cdk.Stack {
432439
433440 // Add methods to the resources
434441 reportsResource . addMethod ( 'GET' , getReportsIntegration , methodOptions ) ;
442+ reportsResource . addMethod ( 'POST' , createReportIntegration , methodOptions ) ;
435443 latestResource . addMethod ( 'GET' , getLatestReportIntegration , methodOptions ) ;
436444 docsResource . addMethod ( 'GET' , getDocsIntegration , methodOptions ) ;
437445 // For path parameter methods, add the request parameter configuration
0 commit comments