How to run the http api 1.2.0 in tigase and configure it to make the rest calls.I want to know
I would like to know how to configure the server, do not use jetty, you need to introduce the jars, the use of the most simple rest call, can you tell me about it?
Added by Daniel Wisnewski over 3 years ago
I'm not sure there is a way you can NOT use jetty as it is used as the basis for the http message receiver. If you have the latest build of Tigase, the most current http api should be present. If you don't want to change your tigase build, you can build the http API using maven and move the jar into your jars directory. To do this:
it should clone into tigase-http-api directory, move there and then
mvn clean package
that will build tigase-http-api.jar, place it into your tigae /jars directory.
Now add the following lines to init.properties
--comp-name-# = rest
--comp-class-# = tigase.http.HttpMessageReceiver
where # is an integer of component that is not in use.
That should set you up to run HTTP api and allow rest calls to the server.
that may also help with some more detail.
Added by Jack Wang over 3 years ago
The development environment STS
The following is my configuration file and use of the jars, but I do not know how to call the HTTP service and rest services, is not my configuration or jars reference error, please give me a correct configuration or tips I lack which jars?
Web call url:http://localhost:8080/ui/index.html
But I'm not reacting to it.
Added by Wojciech Kapcia over 3 years ago
Please start by downloading full Tigase from https://projects.tigase.org/attachments/download/2657/tigase-server-7.0.2-b3821-dist-max.tar.gz and trying out REST calls using this distribution - this is the simplest approach and is less error prone.