Update the `/api` endpoints to `/elyra`
See original GitHub issue/api
is used as the starting path for Elyra endpoints. e.g., /api/metadata/code-snippets
.
while /api
is convenient and also easy to remember, after some discussion and playing around with the swagger docs i have a couple comments:
-
/api
is very common. there is the possibility that some extension (or Jupyter functionality) comes along which also uses the/api
path. this clash could cause issues. -
/api
is not clearly identifiable as an Elyra specific endpoint. someone could easily assume that/api/metadata/runtimes
is a Jupyter endpoint and have no way of immediately realizing it is strictly for Elyra.
with that being said, i would think Elyra would want its own/unique path to clearly distinguish its endpoints. e.g., /elyra
.
the possibility of some other 3rd party component or a Jupyter update being introduced that used that same /elyra
path is much more unlikely. at the same time, the Elyra API endpoints would become clearly recognizable:
/elyra/metadata/code-snippets
/elyra/metadata/runtimes
/elyra/schema
- etc.
it doesn’t necessarily have to be /elyra
(although i think that works well) but something more distinguishable and less common than /api
should be considered.
i would expect changing/updating the endpoint path is a manageable task but then again i don’t know how set in stone the Elyra APIs are to properly speak on how much work would actually be involved. so i leave this here for discussion and thoughts from others?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:8 (8 by maintainers)
Top GitHub Comments
I agree with this as well. We always try to differentiate the different APIs with a different prefix.
I agree. In fact, all of the notebook endpoints begin with /api. I think this change makes sense.