You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by Jibsan Joel Rosa Toirac <ji...@gmail.com> on 2020/06/26 16:01:31 UTC

Error with API and CURL

Sorry to keep asking, I made a query with CURL to create a new room but it
doesn't work. It gives me an error. Here is what I did:

curl --location --request POST '
http://192.168.14.98:5080/dialogo/services/room/?sid=da8e90d4-f894-411e-aabd-424502b7c419'
\
--form 'room= {
    "name": "Three",
    "comment": "Test number three",
    "type" : {
    "type": "CONFERENCE";
    }
    "capacity": "100",
    "allowRecording": "true",
    "externalId": "Three",
    "isPublic": "true"
  }'

And this is what the Terminal Throws me:

  Warning: skip unknown form field: }
    "capacity":"100",

Warning: "allowRecording": "true",
    "externalId": "Three",
    "isPublic":
Warning: "true"
  }

Any suggestions?

Re: Error with API and CURL

Posted by Maxim Solodovnik <so...@gmail.com>.
Hello Jibsan,

I made some changes in build config and now you can go to
https://builds.apache.org/view/M-R/view/OpenMeetings/job/openmeetings/lastBuild/consoleFull
and check request/response of existent Unit tests


On Sat, 27 Jun 2020 at 13:56, Daniel Baker <in...@collisiondetection.biz>
wrote:

> Try like this  :
>
>
> --form 'room= {
>     "name": "Three",
>     "comment": "Test number three",
> *    "type" :  "CONFERENCE",*
>     "capacity": "100",
>     "allowRecording": "true",
>     "externalId": "Three",
>     "isPublic": "true"
>   }'
> On 6/26/2020 5:01 PM, Jibsan Joel Rosa Toirac wrote:
>
> Sorry to keep asking, I made a query with CURL to create a new room but it
> doesn't work. It gives me an error. Here is what I did:
>
> curl --location --request POST '
> http://192.168.14.98:5080/dialogo/services/room/?sid=da8e90d4-f894-411e-aabd-424502b7c419'
> \
> --form 'room= {
>     "name": "Three",
>     "comment": "Test number three",
>     "type" : {
>     "type": "CONFERENCE";
>     }
>     "capacity": "100",
>     "allowRecording": "true",
>     "externalId": "Three",
>     "isPublic": "true"
>   }'
>
> And this is what the Terminal Throws me:
>
>   Warning: skip unknown form field: }
>     "capacity":"100",
>
> Warning: "allowRecording": "true",
>     "externalId": "Three",
>     "isPublic":
> Warning: "true"
>   }
>
> Any suggestions?
>
>

-- 
Best regards,
Maxim

Re: Error with API and CURL

Posted by Daniel Baker <in...@collisiondetection.biz>.
Try like this  :


--form 'room= {
     "name": "Three",
     "comment": "Test number three",
*    "type" :  "CONFERENCE",*
     "capacity": "100",
     "allowRecording": "true",
     "externalId": "Three",
     "isPublic": "true"
   }'

On 6/26/2020 5:01 PM, Jibsan Joel Rosa Toirac wrote:
> Sorry to keep asking, I made a query with CURL to create a new room 
> but it doesn't work. It gives me an error. Here is what I did:
>
> curl --location --request POST 
> 'http://192.168.14.98:5080/dialogo/services/room/?sid=da8e90d4-f894-411e-aabd-424502b7c419' 
> \
> --form 'room= {
>     "name": "Three",
>     "comment": "Test number three",
>     "type" : {
>     "type": "CONFERENCE";
>     }
>     "capacity": "100",
>     "allowRecording": "true",
>     "externalId": "Three",
>     "isPublic": "true"
>   }'
>
> And this is what the Terminal Throws me:
>
>   Warning: skip unknown form field: }
>     "capacity":"100",
>
> Warning: "allowRecording": "true",
>     "externalId": "Three",
>     "isPublic":
> Warning: "true"
>   }
>
> Any suggestions?