aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_helpers.rs
Commit message (Collapse)AuthorAgeFilesLines
* add ExpandFlags typeBryan Newbold2018-09-111-0/+72
|
* finish fatcat-api => fatcat-api-spec refactorBryan Newbold2018-09-111-1/+1
|
* rust clippy (lint) tweaksBryan Newbold2018-09-111-1/+2
|
* many small API cleanupsBryan Newbold2018-09-101-16/+19
| | | | | | - use FatCatId much more often (though not everywhere yet) - more consistent types - remove redundant error handling code in wrappers
* continue CRUD refactor, removing CUD handlersBryan Newbold2018-09-101-0/+29
| | | | | | | | Can't remove the "get" handlers because of the expand parameter, which is only implemented for releases and in the handler (not in the CRUD trait, yet). Also didn't do the batch handler stuff yet.
* database_entity_crud -> api_entity_crudBryan Newbold2018-09-101-1/+1
|
* generic edit accept, and per-row variantBryan Newbold2018-09-091-38/+12
| | | | The per-row variant is for use with cockroach.
* fixes after autoaccept mergeBryan Newbold2018-09-071-0/+1
|
* fmtBryan Newbold2018-09-071-2/+3
|
* major CRUD refactorBryan Newbold2018-09-071-0/+27
| | | | | | | | | | | | | | | This is the start of a large refactor to move all entity CRUD (create, read, update, delete) model/database code into it's own file. HACKING has been updated with an overview of what happens in each file. Next steps: - split rev (and sub-table) insertion in to db_rev_insert and make create/update generic - inserts should be batch (vector) by default - move all other entities into this new trait framework - bypass api_server wrappers and call into CRUD from api_wrappers for entity ops (should be a big cleanup)
* correct EditgroupAlreadyAccepted responseBryan Newbold2018-08-311-4/+1
|
* ORCIDs can end in X characterBryan Newbold2018-08-161-1/+9
|
* big transaction/conn refactorBryan Newbold2018-07-251-71/+69
|
* abstracts; more testsBryan Newbold2018-07-251-25/+30
|
* more external ident handlingBryan Newbold2018-07-251-0/+84
|
* whole bunch of clippy fixesBryan Newbold2018-07-241-1/+1
|
* editor_id and editgroup_id as idents; revisions as raw UUIDBryan Newbold2018-07-201-5/+8
|
* rust: base32 encoded identsBryan Newbold2018-07-201-0/+21
|
* WIP on API spec improvementsBryan Newbold2018-05-241-16/+9
| | | | Fixes a bunch of i64/i32/isize stuff
* editgroup accept functionBryan Newbold2018-05-241-1/+67
|
* get_or_create_editgroup() helper for POSTsBryan Newbold2018-05-241-0/+28