Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rest js client wrong code generation #1564

Closed
deviator opened this issue Sep 18, 2016 · 0 comments
Closed

rest js client wrong code generation #1564

deviator opened this issue Sep 18, 2016 · 0 comments

Comments

@deviator
Copy link
Contributor

If I want use Collections or simple classes in js client I get errors.
Generated js code have more that one mistake:

IModel = new function() {
var toRestString = function(v) { return v; } // bad serialization for structures (js-objects) if use HTTP GET
calculator = new function() { // here "calculator" must be "this.calculator" because it's a method of IModel
var toRestString = function(v) { return v; } 
  this.calc = function(_name, points, on_result, on_error) {
    var url = "http://127.0.0.1:8080/calculator/:name/calc"; // here no replacement of ":name" parameter
...
s-ludwig added a commit that referenced this issue Sep 23, 2016
s-ludwig added a commit that referenced this issue Sep 23, 2016
Fix some rest js client problems. (#1564, #1565)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant