RESTifying LWT #145
HugoFara
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, what if LWT was easier to interface with and more efficient? Here comes in the REST API for LWT! See commit d8e2258!
The REST API is a programming principle that makes the communication between the client (your browser) and the LWT server more efficient. With the previous code of LWT, I had one simple issue: "What kind of message should return the server in case of error?". Without a consistent communication standard, it can be very tricky to choose one format. Before reinventing the wheel, I started RESTify LWT.
The changes are essentially the following:
action
andaction_type
parameters.error
key with the error message as value.set_word_status.php
.set_*.php
may gradually transition.do_ajax_edit_impr_text
was running the ominouseval
!Before the API stratifies to one solution, I would be very glad to receive your comments and suggestions! You can test the new version on the
master
as soon as now! It will define a new public interface for LWT-fork, so it's a great occasion to make the application easy to interface with!Have a good day and happy language learning!
Beta Was this translation helpful? Give feedback.
All reactions