Andrzej Wójcik (Tigase) opened 3 years ago
|
|||||||
I've reimplemented the core of the REST API by implementing a subset of JAX-RS specifications. This allowed me to reduce dependency on Groovy. For now, Groovy is still required for index, setup, and old REST API groovy scrips which will be removed after they are reimplemented in Java. Before removing Groovy, index and setup need to be reimplemented by using https://jte.gg as a templating engine. |
|||||||
@wojtek There are 2 handlers implemented as an example. Could you look at As for setup/index, we may try to move them to use JAX-RS to make reading parameters simpler. |
|||||||
I took a quick look and IMHO looks ok, and more readable.
|
|||||||
Yes, for testing sync & async and returning an object with a list. |
|||||||
Referenced from commit 9 months ago
|
|||||||
Referenced from commit 9 months ago
|
|||||||
Referenced from commit 9 months ago
|
|||||||
Referenced from commit 8 months ago
|
|||||||
Andrzej Wójcik (Tigase) referenced from other issue 8 months ago
Closed
|
|||||||
wojciech.kapcia@tigase.net batch edited 7 months ago
|
|||||||
wojciech.kapcia@tigase.net added to iteration "tigase-server-8.4.0" 7 months ago
|
|||||||
wojciech.kapcia@tigase.net changed fields 7 months ago
|
|||||||
wojciech.kapcia@tigase.net added "Related" #149 7 months ago
|
|||||||
Referenced from commit 5 months ago
|
Type |
Task
|
Priority |
Normal
|
Assignee | |
Version |
tigase-server-8.4.0, tigase-server-9.0.0
|
-
tigase-server-9.0.0 Open
-
tigase-server-8.4.0 Closed
The current implementation is written in Groovy which we want to get rid of as it causes huge delays during startup (scripts compilation) and is rather a huge dependency (over 7MB). Additionally, writing code (in the HTTP API main code or in scripts) is error-prone.
Due to that, we need to rewrite parts of the HTTP API which is written in Groovy (mainly REST API). We may leave an option to use groovy to provide user-create scripts, but main part of the HTTP API should work without the requirement of having a Groovy in the classpath.
While at it, it should be considered to work on #issue #92 and @wojtek suggestion to use JAX-RS API for implementation of our REST API (this would make API creation simpler and more unified).