Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Support multiple api roots #13

Open
mdvorak opened this issue Apr 14, 2017 · 1 comment
Open

Support multiple api roots #13

mdvorak opened this issue Apr 14, 2017 · 1 comment

Comments

@mdvorak
Copy link
Owner

mdvorak commented Apr 14, 2017

  1. Extract from ApiUrl abstract base class for DI
  2. Optionally rename it to ApiMapper
  3. Current functionality move to SingleApiRoot
  4. Add optional NamedApiRoot with support for several endpoints

Note these will be exclusive - either you will use single root with no prefix, or named prefixes, which means there always have to be at least the prefix in the url.
For NamedApiRoot, one api should be still marked as root path handler, that is / will be translated to its prefix.

@mdvorak
Copy link
Owner Author

mdvorak commented May 8, 2017

There is an issue with APP_API_PREFIX, which is declared globally, and won't be much use for NamedApiRoot.

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

No branches or pull requests

1 participant