Skip to content
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

Basepath over whole serverless compose project #178

Open
1 task done
RickVerkuijlen opened this issue Mar 28, 2023 · 1 comment
Open
1 task done

Basepath over whole serverless compose project #178

RickVerkuijlen opened this issue Mar 28, 2023 · 1 comment

Comments

@RickVerkuijlen
Copy link

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Use case description

I'm using serverless compose over multiple projects. All these project communicate with each other through API requests. Some of the endpoints are similar over the different projects. With serverless compose, I want to prefix all the services within the compose with an endpoint.

Proposed solution (optional)

It would be nice if its possible that in the serverless-compose.yml, we can add something like basepath: {PREFIX}. This could result in all the services within that compose file having that prefix.

@RickVerkuijlen
Copy link
Author

I've came across an issue that has to do with this. I'll try to explain it.
In service A, I have the endpoint /tenant.
In service B, I have the endpoint /tenant/{tenantId}.
Lets say I want to deploy service A before I want to deploy service B. Service A is deployed, and the endpoint /tenant is created. When I want to deploy service B, it complains about the parent (/tenant) already existing. It would be nice if the ID of the parent can be recognized automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant