Project

General

Profile

tigase http api

snehil gehlot
Added 9 months ago

how can i call tigase http api from iOS side. I have make clone from github. but i have no any idea how can i check all api from my side.


Replies (9)

Added by Daniel Wisnewski IoT 1 Cloud 9 months ago

There are a few ways you can access the server using the HTTP API. You can call custom scripts, or run commands through REST API. Can you elaborate on what you plan to do with the API from iOS?

Added by snehil gehlot 9 months ago

we have setup over own server (use mango db) with tigase and as well as setup ios code from git clone https://git.tigase.tech/tigase-swift. so now i want to check apis from my ios code but i don't have any idea about apis that which api we have use and how we can check it. please help us.

Added by Wojciech Kapcia TigaseTeam 8 months ago

Tigase Swift library use XMPP protocol to communicate with the server and not HTTP.

Of course you can also interact with the server via HTTP APIs but you don't need tigase-swift to do it. Moreover - all APIs are self-documented when you navigate to http://:8080/ and navigate to REST section.

Added by 连生 张 about 1 month ago

I cannot find the class in the http-api component, version 1.2.1. Please help me find this class or the replacement of this class that has been changed

--comp-name-7=rest
--comp-class-7=tigase.http.rest.RestMessageReceiver

tigase
tigase-http-api
1.2.1

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 1 month ago

RestMessageReceiver class was deprecated and it is gone now. Please look at the project wiki page https://tigase.tech/projects/tigase-http-api/wiki/Configuration#Properties or to the project documentation available at https://docs.tigase.net where you will find a replacement.

Added by 连生 张 about 1 month ago

How do I get a valid apikey and what does it do?

http1.png (69.4 KB) http1.png

Added by Wojciech Kapcia TigaseTeam about 1 month ago

连生 张 wrote:

How do I get a valid apikey and what does it do?

It's described in HTTP API component documentation in section API keys. It's used to improve service security by further limiting execution permission to only valid API keys.

Added by 连生 张 about 1 month ago

I need to know how to allow access to the REST API without using any keys, then I can.To do this, you need to add the API key open_access that has the same value as the API key field.Please give an example of the configuration. Thank you

config.tdsl (2.28 KB) config.tdsl 完整的配置文件

Added by Wojciech Kapcia TigaseTeam about 1 month ago

You need to use web Admin UI Guide - navigate to Configuration section and click on Add API key, then provide open_access as the key.

    (1-9/9)