dffe435c59
Return structured server errors in FFI
2021-02-28 18:50:10 -05:00
e80fb6b9d0
Add new shop fields to create & update functions
2021-02-13 17:47:31 -05:00
0e833ed273
Support saving & loading keywords on transactions
2021-02-09 23:48:35 -05:00
0244914435
Add keywords to Merchandise
2021-02-09 00:59:48 -05:00
2052f2cac9
Return merchandise list in create_merchandise
...
This allows an optimization, removing an extra get_merchandise query.
2021-01-23 20:16:26 -05:00
82c7bdd92d
Fix vec from_raw_parts when ptr is null
2020-11-21 01:52:17 -05:00
5e7ec54c6b
Add shelves to interior_ref_lists
...
Creates a new struct: `RawInteriorRefData` that holds the vec parts for both lists of interior refs and shelves.
2020-11-21 01:33:44 -05:00
bcb8754057
Fix transaction struct so trades don't crash
2020-11-18 23:27:37 -05:00
9004b4378d
Switch all endpoints to send and receive bincode
...
Instead of json. This required modifying some of the structs and created "Saved" structs for each type for deserializing bincode from the API.
Metadata is still stored as JSON.
2020-11-14 02:22:50 -05:00
52b1a64d7e
Defer writing to file cache to separate thread
...
This allows the plugin to get the data faster while the cache update continues in the background.
2020-11-07 00:34:09 -05:00
2b82d09d17
More consistent cache file names
2020-11-05 19:30:18 -05:00
127a68687e
Write metadata to file cache
...
Then, before a GET, read the metadata and add any etag to the headers and handle 304 in response.
2020-11-05 19:19:17 -05:00
dcc3590ac3
Better error handling in create_transaction
2020-11-02 01:38:29 -05:00
a5e3b402fa
Update create_transaction with new fields
...
Also better interface, just use RawTransaction as a param. Rust is complaining that this isn't FFI safe though, so I need to figure out why.
2020-10-31 22:43:14 -04:00
7847b19c3e
Add create_transaction function
2020-10-30 00:25:17 -04:00
1805bbb4dc
Add update by shop id functions
2020-10-25 03:17:20 -04:00
32aaa29522
fix status, rename get_interior_ref_list_by_shop_id
2020-10-24 03:02:43 -04:00
1c2e01ed92
Add get_latest_interior_ref_list_by_shop_id
2020-10-20 01:14:19 -04:00
7c5edcf12c
Remove old comment in cache.rs
2020-10-19 01:16:14 -04:00
36a6c38b41
Add list_shops function, improve error messages
2020-10-19 01:09:28 -04:00
e0f0f26943
Remove unneeded Sync and Send impls
2020-10-18 20:59:18 -04:00
6513b2903a
Major refactor and clean up
...
Split out big lib.rs into separate modules for each endpoint.
Now using FFIResult in all functions requesting the API.
Added unit tests for all functions.
Abstracted file caching behavior into cache.rs. Uses temp files in tests
2020-10-18 20:51:37 -04:00
0aa3e64dc8
Add get and update shop methods
2020-10-18 02:32:16 -04:00
ae20df0a69
Make Init return bool result, clean up a bit
2020-10-17 19:31:30 -04:00
3f6ce19e61
Update related projects in README
2020-10-12 21:40:42 -04:00
406a244ed7
Add related projects to README
2020-10-12 21:14:00 -04:00
85e4fe7f20
Initial commit. Working get & post, needs cleanup
2020-10-12 20:19:48 -04:00