How to run the http api 1.2.0 in tigase and configure it to make the rest calls.I want to know

Jack Wang
Added over 3 years ago

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?

Replies (3)

Added by Daniel Wisnewski IoT 1 Cloud 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:

Clone repository

git clone

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

--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

Rest call:

But I'm not reacting to it. (1.72 KB) This is my configuration.
FA44C0E6-66D3-4BE2-BD4F-0C3CCADE56C1.png (292 KB) FA44C0E6-66D3-4BE2-BD4F-0C3CCADE56C1.png This is the jars I use.

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Please start by downloading full Tigase from and trying out REST calls using this distribution - this is the simplest approach and is less error prone.