Lance Edgar
|
f611a5a521
|
Refactor Query.get() => Session.get() per SQLAlchemy 1.4
|
2023-02-11 22:05:45 -06:00 |
|
Lance Edgar
|
5736faf24c
|
Use sa-filters instead of sqlalchemy-filters for API queries
latter was abandoned it seems; former has support for SQLAlchemy 1.4
and looks to be a drop-in replacement
another option, if needed at some point, though i like the looks of it
less, is https://sqlalchemy-filters-plus.readthedocs.io/
see also:
https://github.com/juliotrigo/sqlalchemy-filters/pull/69
https://github.com/juliotrigo/sqlalchemy-filters/issues/72
|
2023-02-11 11:53:47 -06:00 |
|
Lance Edgar
|
dec0ebba30
|
Let the API "rawbytes" response be just that, w/ no file
|
2023-01-14 10:31:31 -06:00 |
|
Lance Edgar
|
35728e20be
|
Add default normalize logic for API views
and use common logic for getting field list in traditional Form class
|
2022-08-30 21:56:46 -05:00 |
|
Lance Edgar
|
bc51a868ce
|
Consolidate master API view logic
also let all API views use new config defaults convention
|
2022-08-14 00:59:35 -05:00 |
|
Lance Edgar
|
4c29a667cb
|
Couple of API tweaks for work orders
made a change to sorting such that it assumes the primary model is
being sorted, if caller does not specify
|
2022-08-11 00:15:12 -05:00 |
|
Lance Edgar
|
fa700d53ad
|
Add /people API endpoint; allow for "native sort"
|
2021-09-03 16:26:15 -05:00 |
|
Lance Edgar
|
63350469d0
|
Prevent updates to batch rows, if batch is immutable
probably need a lot more support for this elsewhere; this is all i needed for
the moment though..
|
2021-02-02 18:58:46 -06:00 |
|
Lance Edgar
|
11cc9a752a
|
Remove "api." prefix for default route names, in API master views
|
2020-03-03 17:10:41 -06:00 |
|
Lance Edgar
|
113c0af49d
|
Add new "master" API view class; refactor products and batches to use it
|
2020-03-01 17:31:51 -06:00 |
|
Lance Edgar
|
3514c4050e
|
Add some API views for receiving, and vendor autocomplete
lots more to do yet, for those...
|
2019-11-12 11:55:28 -06:00 |
|
Lance Edgar
|
afdd294c60
|
Add support for "toggle complete" for batch API
|
2019-11-11 12:36:50 -06:00 |
|
Lance Edgar
|
bd09acd0fd
|
Add support for label batch "quick entry" API
plus other general improvements to API core/master views and config
|
2019-11-11 11:26:42 -06:00 |
|
Lance Edgar
|
ed53bd487b
|
Add basic API endpoints for /ordering-batch
|
2019-08-30 19:47:30 -05:00 |
|
Lance Edgar
|
c41a7303df
|
Add /products API endpoint, enable basic filter support for API views
|
2019-08-30 19:47:27 -05:00 |
|
Lance Edgar
|
7aa5c8e724
|
Tweak how we return single record data from API
i.e. always return 'data' key with object data, regardless of model
|
2019-08-30 00:27:03 -05:00 |
|
Lance Edgar
|
3d3ace1c2a
|
Add basic support for create and update actions in API views
customer views only for now, will add more upon further testing
|
2019-08-25 16:02:59 -05:00 |
|
Lance Edgar
|
b7319fd152
|
Add patterns for joining tables in API list methods
i.e. we needed to do an *outer* join on User.person since that can be null
|
2018-11-27 02:21:38 -06:00 |
|
Lance Edgar
|
93aa96a339
|
Add support for sorting by person name in Vue.js Users grid
|
2018-11-27 01:49:39 -06:00 |
|
Lance Edgar
|
5c66eb5f4f
|
Refactor API collection_get to work with vue-tables-2
https://github.com/matfish2/vue-tables-2
|
2018-11-20 20:49:13 -06:00 |
|
Lance Edgar
|
81db564e34
|
Delay import of sqlalchemy_filters project
since apparently we can't use this (and hence our new API) unless python3
|
2018-11-20 17:07:28 -06:00 |
|
Lance Edgar
|
46501b7caa
|
Use sqlalchemy-filters package for REST API collection_get
just sorting and pagination so far though, no actual filters yet
|
2018-11-19 23:56:42 -06:00 |
|
Lance Edgar
|
fec8ba28e2
|
Refactor API views a bit for sake of running as separate service
also add "proper" (sic) permission checks
|
2018-11-03 18:55:26 -05:00 |
|
Lance Edgar
|
ad35481234
|
Use Cornice for REST API viws
still very experimental at this point
|
2018-11-03 17:13:08 -05:00 |
|
Lance Edgar
|
b8fdce378f
|
Add basic API endpoint for upgrades, partial pagination support
latter is still broken, but this much is a starting point i think
|
2018-11-01 00:34:28 -05:00 |
|
Lance Edgar
|
0c41395cfc
|
Add very basic API views to expose customer, user tables
just so we can populate an "index grid table" in the UI, for now..
|
2018-10-29 20:16:14 -05:00 |
|