camel-karavan icon indicating copy to clipboard operation
camel-karavan copied to clipboard

Improve REST Path property for Path Params

Open hguerrero opened this issue 3 years ago • 4 comments

When creating a rest method you can use {something} to indicate a path param. There is no way in the Path field to configure this and notice the existence of path params.

hguerrero avatar Jul 07 '22 18:07 hguerrero

@hguerrero could you please elaborate/add screenshots ? I dont understand the problem

mgubaidullin avatar Jul 11 '22 15:07 mgubaidullin

@mgubaidullin take this screenshot as example:

image

You can see the path is /greeting/{name}. There is no UI help on how to craft the REST paths, and you can configure path parameters.

So we can add some UI guide on the parameters, and make them available as part of the routes that are linked To: as it will be available for the route when running.

hguerrero avatar Jul 18 '22 20:07 hguerrero

@davsclaus could we add more information to REST models in catalogue?

mgubaidullin avatar Jul 19 '22 15:07 mgubaidullin

Yes the description in the model can be updated, then when you click that ? icon then it shows that.

Anyone is welcome to help write a better description we can use https://github.com/apache/camel/blob/main/core/camel-core-model/src/main/java/org/apache/camel/model/rest/RestDefinition.java#L104

davsclaus avatar Jul 25 '22 12:07 davsclaus

Captions come from Camel itself and if requires should be fixed there

mgubaidullin avatar Aug 15 '22 19:08 mgubaidullin