3

I have wso2 api manager version 2.1.0 where I have deployed API which has empty resource path for method get, up to here is all OK but when I want to call it from a store I see at the end asterisk which is preventing to get output and I am getting no content. when I call it with curl or postman without asterisk I get expected output.

in API manager 1.10 this was not presented.

Does anyone know how to get rid of it?

image

Chandresh Khambhayata
  • 1,748
  • 2
  • 31
  • 60
tom vesely
  • 31
  • 4

1 Answers1

0

It's a known issue and will be fixed in a later release.

But you can try fixing it yourself. Have a look at swagger-ui.js and swagger-ui.min.js files in

wso2am-2.1.0/repository/deployment/server/jaggeryapps/store/site/themes/wso2/templates/api/swagger/swagger

Edit: See this.

https://github.com/wso2/carbon-apimgt/pull/3325/files

Bee
  • 12,251
  • 11
  • 46
  • 73
  • hi, thanks for the input , however this isnt working for me I still see the star event I update swagger files and get no content response – tom vesely Jul 24 '17 at 06:36
  • Did you change min js file too? And tried after clearing cache too? – Bee Jul 24 '17 at 08:53
  • nope I changed only the ui.js nothing has changed with this one, but the min.js is problematic to me as I am not very familiar with javascript and I am not able to put it to proper position as it srews allways the api console page , any advice ? – tom vesely Jul 24 '17 at 11:35
  • what is really used is the min.js. so you can delete min.js and rename .js as min.js. – Bee Jul 24 '17 at 15:28
  • now it is correct at field request url, but it is still present in curl command in console, any other ideas? thank you – tom vesely Jul 25 '17 at 11:02
  • try to fix `// adds curl output` section in the js. – Bee Jul 25 '17 at 17:48
  • curlCommand = curlCommand.replace('*', ''); now it is not there , but still i get no response from server , I have to look deeper :) – tom vesely Aug 14 '17 at 11:02