Projects tigase _server tigase-http-api Issues #92
HTTP-API-v2 - authorised user session (#92)
Open
wojciech.kapcia@tigase.net opened 4 years ago

Create v2 version of HTTP-API which would allow to have authorised user session (user would be able to send/retrieve data easily for his session) -- Andrzej, please so expand on the concept.

Andrzej Wójcik (Tigase) commented 4 years ago

Actually there are two separate parts of this HTTP API v2.

  1. We have HTTP API (current, let's name it v1) which is complicated because it is not consistent. Some endpoints require authentication, others do not, etc. It would be better to provide new v2 API which would have the same features (and in some cases even then same payload?) but with consistent authentication requirements, etc. So for example, API available with just an API key would be on one "path", and others required additionally user authentication on a different endpoint.

  2. Create a simple HTTP API which would allow anyone to create a "simple HTTP client", so that using only HTTP it would be possible to "set status", "check messages" (polling, maybe pushing?), send messages - with simple JS based solution it could be an interesting for anyone who would like to create a simple demo for testing or just a simple chat solution. I'm aware that this is not-XMPP and we already have bosh and websocket, but usage of both of those endpoints requires additional knowledge while usage of plain and simple HTTP API could be a good selling point.

Both of those "ideas" are based on how our clients are using our server, ie.

  1. simple JS client, which could be based on idea no. 2
  2. integration with other systems (idea no. 1)

While we could say that idea no. 2 could be solved by BOSH or WebSocket, I would argue that not everyone is familiar with XMPP and providing plain and well documented API for creation of simple clients would be a good entry point. Moreover the same API could be used by other developers for not only web based projects, just to to allow them for simple usage of Tigase without learning curve of XMPP.

(The same API could be useful for iOS and background synchronization of messages, iOS allows you to do a lot more in the background as long as you would use just HTTP)

Andrzej Wójcik (Tigase) commented 4 years ago

While we could also say that we are providing libraries, we do that only for "some" environments (Swift, JVM, JS?) and there is no our library for others which could use that simple entry point as well.

wojciech.kapcia@tigase.net batch edited 5 months ago
Name Previous Value Current Value
Iterations
empty
tigase-server-9.0.0
issue 1 of 1
Type
Task
Priority
Normal
Assignee
Version
tigase-server-9.0.0
Iterations
Issue Votes (0)
Watchers (2)
Reference
tigase/_server/tigase-http-api#92
Please wait...
Page is in error, reload to recover