1

I have a view SQL layer with some parameters. I need to use the REST API to guess these parameters and show to the user in the interface to he/she fill the values before submit.

Going to rest/workspaces/<WS>/datastores/<DS>/featuretypes/ I can see the layer attributes but no info about the view SQL.

1 Answer 1

2

If you get a feature type xml representation you should find a virtual table section in the feature type metadadata, that will also contain the sql view declared parameters.

2
  • You're right! Just changed html to xml in rest/workspaces/<WS>/datastores/<DS>/featuretypes/myTestView.html to see many useful data. Commented Dec 14, 2016 at 11:24
  • Forgot to say, you can use .json too ! Commented Dec 14, 2016 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.