Hello Jibsan, You can 1) search mail archives 2) run JUnit tests and check what is submitted
On Thu, 18 Jun 2020 at 23:45, Jibsan Joel Rosa Toirac <[email protected]> wrote: > Hello, I'm using the API via REST and I know how to get the SID to make > operations with it, this is the way I'm using it: > > > http://192.168.14.98:5080/openmeetings/services/user/login?&user=admin&pass=my_password > > And it retourn this: > > > {"serviceResult":{"message":"cc8d1754-87c8-459a-adf7-e2a1a80cba9b","type":"SUCCESS"}} > > That's the SID, no? > > So I want to Add and Delete a new user via REST but I have this from: > > > http://arisp-phplist-01.dualtec.com.br/red5306/webapps/openmeetings/docs/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html > > Which for add is this: > > @POST > @Path(value="/") > public UserDTO > <http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/UserDTO.html?is-external=true> > add(@QueryParam(value="sid") > String > <http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true> > sid, > @QueryParam(value="user") > UserDTO > <http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/UserDTO.html?is-external=true> > user, > @QueryParam(value="confirm") > Boolean > <http://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true> > confirm) > throws > org.apache.openmeetings.webservice.error.ServiceException > <http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/webservice.error.ServiceException.html?is-external=true> > > Description copied from interface: > org.apache.openmeetings.webservice.cluster.UserService > Adds a new User like through the Frontend, but also does activates the > Account To do SSO see the methods to create a hash and use those ones! > Specified by:add in interface > org.apache.openmeetings.webservice.cluster.UserService > <http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/webservice.cluster.UserService.html?is-external=true> > Parameters:sid - The SID from getSessionuser - user objectconfirm - > whatever or not to send email, leave empty for auto-sendReturns:- id of > the user added or error code > > And for delete is this: > > @DELETE > @Path(value="/{id}") > public ServiceResult > <http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/basic/ServiceResult.html?is-external=true> > delete(@QueryParam(value="sid") > String > <http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true> > sid, > > @PathParam(value="id") > long id) > throws > org.apache.openmeetings.webservice.error.ServiceException > <http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/webservice.error.ServiceException.html?is-external=true> > > Description copied from interface: > org.apache.openmeetings.webservice.cluster.UserService > Delete a certain user by its id > Specified by:delete in interface > org.apache.openmeetings.webservice.cluster.UserService > <http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/webservice.cluster.UserService.html?is-external=true> > Parameters:sid - The SID from getSessionid - the openmeetings user id > Returns:- id of the user deleted, error code otherwiseThe problem is tha > I dont know how to put those parameters on the URL or Postman to make this > operations, please if somebody could send me an URL example with all the > parameters it will be great because I've tried but I couldn't find a better > explination to that. Thank you for your time.Greetings, Jibsan > -- Best regards, Maxim
