gfrenoy / TabT-API

Programming interface for TabT, the free table tennis manager software
http://tabt.frenoy.net
GNU Affero General Public License v3.0
9 stars 5 forks source link

REST API #23

Open TomVanAken opened 3 years ago

TomVanAken commented 3 years ago

Are there plans to create a REST API returning a json result? It would be nice to have the same features the webservices offer using a url like: https://ttonline.sporta.be/ranking/

This can be interesting for web developers using the latest js frameworks to integrate tabt info in their websites.

Fllorent0D commented 3 years ago

I created a small project in order to provide a REST API that runs as a middleware and queries TabT. It has also a builtin cache.

You can find it here: https://github.com/Fllorent0D/TabT-REST

gfrenoy commented 3 years ago

I created a small project in order to provide a REST API

That looks pretty cool :)

Is it ready for production ? I can probably install it on the TTonline test instance to give it a try ?

gfrenoy commented 3 years ago

Are there plans to create a REST API returning a json result?

I don't have one.

On top of Florent's option, you may also want to have a look to http://tabt.mentalis.org/

Fllorent0D commented 3 years ago

Is it ready for production ? I can probably install it on the TTonline test instance to give it a try ?

Kinda 😅

It would mainly need some documentation for available endpoints & documentation on how to set up the project.

TomVanAken commented 3 years ago

Florent, Looks interesting.

Unfortunately, I don't use a node.js based server to run it on.

Regards, Tom

Fllorent0D commented 3 years ago

@gfrenoy I did some good improvements on my project. There is now a full OpenApi 3 spec with it (the equivalent of the WSDL).

It's deployed on my test server, if you want to give it a try: