This message was deleted.
# aws
s
This message was deleted.
s
Can you just configure a seperate method and integration for each
Copy code
const methodGet = new aws.apigateway.Method("get", {
    restApi: openApiId,
    resourceId: resource.id,
    httpMethod: "GET",
    authorization: "CUSTOM",
    authorizerId: openApiAuthorizorId,
    apiKeyRequired: true,
});

const integration = new aws.apigateway.Integration("integration", {
    restApi: openApiId,
    resourceId: resource.id,
    httpMethod: methodGet.httpMethod,
    integrationHttpMethod: methodGet.httpMethod,
    type: "HTTP_PROXY",
    uri: "<https://httpbin.org/uuid>",
});
s
Yeah that is another way of doing it instead of giving the OpenAPI specs. I would also need to create a specific
Resource
before each right?
s
yes
or define the shared resource