New request using REST API

New request using REST API

Hi all,

I'm not practice about REST API, so I need some help.

I'm trying to open a new request using http post method, but I don't know how to set the parameters. I created a simple test html form to do this:

<html>
    <head>
        <title>test</title>
    </head>
    <body>
       <form name="test" action="http://localhost:8080/sdpapi/request" method="post">
            <input type="text" name="subject" value="test subject">
            <input type="text" name="description" value="test description">
            <input type="hidden" name="TECHNICIAN_KEY" value="712389ED-1E35-48FC-A9CA-D08D78D41E1B">
            <input type="hidden" name="OPERATION_NAME" value="ADD_REQUEST">
            <input type="submit" name="SEND_DATA" value="SEND DATA">
        </form>
    </body>
</html>

The login works, but I receive this response:

<operation name="ADD_REQUEST">
<result>
<status>Failed</status>
<message>No input data for creating request</message>
</result>
</operation>

Which is the correct way to send parameters?

Thanks in advance,
MO

































                  New to ADSelfService Plus?