Page 1 of 1

New Rest Service

Posted: Sat Oct 11, 2014 2:08 pm
by Elle Bolt

Hi,

I've been trying to add a new rest service but i'm not winning please show me how you would create this service with the following info.

Image Image

Thank you,


New Rest Service

Posted: Sat Oct 11, 2014 7:10 pm
by Illya Stepanov

Hi Elle,

Based on this information it's hard to set the REST service, is there a possibility to provide us a link to a full documentation?


New Rest Service

Posted: Sat Oct 11, 2014 7:13 pm
by Elle Bolt

New Rest Service

Posted: Mon Oct 13, 2014 12:22 pm
by Evgene Karachevtsev

Hello Elle,

Could you please detail, what exactly do you have a problem with?
What is the error obtained when the test request?
The settings I got the following:
http://take.ms/r7zDm
In the request body ou should import the model schema
http://take.ms/VbGx0
Then please make test and see the error in the reply and correct it


New Rest Service

Posted: Mon Oct 13, 2014 2:41 pm
by Elle Bolt

Hi Evgene,

Here is what I got,

My settings:

Image

the imported body... I have remove some of the optional parameters:

Image

This is the test screen it does not allow me to edit the values of the parameters:

Image

then the response:

Image


New Rest Service

Posted: Mon Oct 13, 2014 3:54 pm
by Evgene Karachevtsev

Elle,

There is written "not enough arguments, expected 1 argument, got 0". Please find, what is missing.


New Rest Service

Posted: Mon Oct 13, 2014 6:33 pm
by Elle Bolt

That is just the thing when I try to test the service the parameters I've created in the Body is grayed out so I can't add values to them thus the error "not enough arguments, expected 1 argument, got 0" what i'm trying to figure out is why are they grayed out and how do I then get the values into them?


New Rest Service

Posted: Tue Oct 14, 2014 4:18 pm
by Evgene Karachevtsev

Elle,

For tests you should create an element with a specific index. It can be filled, after the test it should be removed.
Image