Commit graph

161 commits

Author SHA1 Message Date
b0704f50a4 Remove 'allow unused' macro and handle the warnings therefrom 2023-01-10 21:12:25 +01:00
0llino
573ae6ef9a added the support of historique functionnality into the client 2023-01-10 09:49:06 +01:00
8f389b5137 Wrongly renamed something 2023-01-09 08:00:17 +01:00
1b29beec11 Handle errors for extract_first_line_of_request 2023-01-08 23:36:49 +01:00
d02a4a9350 Don't unwrap in parse_uri anymore 2023-01-08 23:08:29 +01:00
56881725aa Add GET /api/historique 2023-01-08 22:50:37 +01:00
783a83ef05 Remove unused Split import 2023-01-08 22:30:45 +01:00
0d9f606960 Make incoming HTTP method an enum 2023-01-08 22:30:45 +01:00
0llino
2416c47f67 added the client.py and several functionalities. Not finished yet tho. 2023-01-08 20:00:24 +01:00
daa34863d5 Send SOAP for GET /api/hello 2023-01-08 14:47:20 +01:00
b2da1dcb6a Update uri parser to handle different accepted uri lengths 2023-01-08 14:44:06 +01:00
24bd6e50ef Add function Mouth::send_soap_xml 2023-01-08 14:01:48 +01:00
8b848a6fc0 Rename send_data to send_json_data 2023-01-08 13:39:54 +01:00
dc2f0334b6 Write xml file for SOAP response to GET /api/hello 2023-01-08 13:10:39 +01:00
b5becee084 Add inserting to history at every request 2023-01-08 11:02:41 +01:00
75d94d3d4f Add table history 2023-01-08 10:47:33 +01:00
4a09f7a3b4 Format 2023-01-07 10:46:39 +01:00
925ac6310c Fix send_bad_request 2023-01-07 10:46:00 +01:00
268d6c390b Use is_empty() istead of len() == 0 2023-01-07 10:31:37 +01:00
af80b3b62f Hide Mouth::send_data as private, use wrapper functions to send stuff 2023-01-07 10:29:53 +01:00
52b54bfb84 Split handle_request into two subfunctions for get and post 2023-01-07 09:23:43 +01:00
f00ccab096 Add GET favoris 2023-01-07 09:13:06 +01:00
0f15c38cd3 Rename functions 2023-01-07 08:27:27 +01:00
e67de50ea7 Adding PHP client 2023-01-06 17:46:31 +01:00
29b7a1e134 Add print statement for logging the request 2023-01-06 17:46:10 +01:00
e5b28029c9 Return Title when inserting favorite 2023-01-06 17:31:31 +01:00
b8a0190d91 Handle POST favoris 2023-01-06 16:02:14 +01:00
8509a32cbf Permit adding a new favorite 2023-01-06 15:31:19 +01:00
820c848a99 Add favorite table 2023-01-06 14:58:36 +01:00
b33cdc6a78 Finish parsing the API uri 2023-01-06 14:17:23 +01:00
4b85869505 Remove editor table 2023-01-06 13:43:10 +01:00
fe5e428b1d Listen on all devices by default 2023-01-06 13:28:00 +01:00
fc475ee73f Remove useless newline 2023-01-05 22:27:58 +01:00
a38be6edcf Start add search for editeurs 2023-01-05 17:17:40 +01:00
ab3ac277e7 Decode incoming request url 2023-01-05 17:17:38 +01:00
652ab3686e Minor change 2023-01-05 16:44:16 +01:00
4e27fee48b Run rust fmt 2023-01-05 16:32:09 +01:00
0ee8a3ecfe Handle a title search request 2023-01-05 16:25:35 +01:00
eb6d89eb20 Handle request in listen method and don't return a value 2023-01-05 15:43:58 +01:00
ba2c373840 Refactor a bit 2023-01-05 15:30:52 +01:00
4504a9b77b Add Status enum to handle status codes cleanly 2023-01-05 12:46:35 +01:00
6c9112a10c Convert read_sql to search_title 2023-01-05 10:24:15 +01:00
afb6e658e9 Remove example crud operations 2023-01-05 10:23:26 +01:00
0224e31fb7 Add explicit mention of title::table instead of title 2023-01-05 10:22:53 +01:00
deb5fd57ea Pass an iterator to add_all_titles instead of using a vector 2023-01-05 10:03:52 +01:00
54e847f8ac Don't borrow when using InsertTitle for the database
We expect the item to be dropped afterwards, because we no longer
need it
2023-01-05 10:01:57 +01:00
14cd3e85e6 Minor comment changes 2023-01-05 09:36:23 +01:00
36b580ca36 We don't need into_iter here 2023-01-04 23:44:41 +01:00
762850abd0 Fix update_title function 2023-01-04 23:44:27 +01:00
9b680b73e1 Update function name 2023-01-04 00:06:53 +01:00