▄▄             ▄▄▄  ▄▄▄ Power
█  █ ▄▄▄▄ ▄▄▄▄▄ █  █ █  █
█▄▄█ █▄▄▄ █ █ █ █▀▀▄ █▀▀▄
█  █ ▄▄▄█ █ █ █ █▄▄▀ █▄▄▀

Login
Register
/ ad amd64 api asm asmbb best bugs chat common debian deck design dll docker email embed fast feature files fossil fresh.ide friendly gamedev heap help hiawatha incredible interop learning libfresh limit links linux meme meta.http-equiv money mysql neo nginx numbers orly os outage pass password programmers programming proile resources safety script.alert.xss secret seo skins sodom source sourcecode subforum support tags test type work xss игнат котики парола русский тест уеб.програмиране хабр.наполеон
Categories Thread list

API request?

Hi, It seems that asmBB will render all page then return to user.

Would you please add some api route? Then others can make a different frontend like SPA?

Thanks!

ganuonglachanh

Hi, It seems that asmBB will render all page then return to user.

Would you please add some api route? Then others can make a different frontend like SPA?

Thanks!

It is planned to be implemented. But it is a little bit a mixed feelings feature. Because I want to keep the forum working without JS enabled. On the other hand, the API will allow development of desktop clients.

Maybe I will make the API not JSON, but some kind of binary format. This way, will make JS use harder.

johnfound
ganuonglachanh

Hi, It seems that asmBB will render all page then return to user.

Would you please add some api route? Then others can make a different frontend like SPA?

Thanks!

It is planned to be implemented. But it is a little bit a mixed feelings feature. Because I want to keep the forum working without JS enabled. On the other hand, the API will allow development of desktop clients.

Maybe I will make the API not JSON, but some kind of binary format. This way, will make JS use harder.

Thanks for the info, a json api would be better imo cos lot of frontend use json.

ganuonglachanh

Thanks for the info, a json api would be better imo cos lot of frontend use json.

Some kind of json API is available right now. The chat is implemented by SSE and there is an events push service that handles real-time events.

But for now, only the chat events are handled. Later I am planning to implement other kind of events in order to enhance the forum features. But it is very unlikely that AsmBB will be able to work in a form of SPA. I want to keep the JS-less work to the most possible extent.

As a reference you can check the JS code of the chat here: https://asm32.info/fossil/repo/asmbb/artifact/32d13cec3ff9bc24

AsmBB v2.4 (check-in: 7bb3292ed42db7ca); SQLite v3.25.3 (check-in: 89e099fbe5e13c33);

©2016..2018 John Found; Licensed under EUPL.
Powered by Assembly language
Created with Fresh IDE

Icons are made by Egor Rumyantsev, vaadin and icomoon from www.flaticon.com