Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

manage all kind of records (list, create, update, delete) #24

Open
etobi opened this issue Jul 8, 2013 · 5 comments
Open

manage all kind of records (list, create, update, delete) #24

etobi opened this issue Jul 8, 2013 · 5 comments
Labels
Milestone

Comments

@etobi
Copy link
Member

etobi commented Jul 8, 2013

No description provided.

@etobi
Copy link
Member Author

etobi commented Jul 8, 2013

generic list/create/update/delete records (and not doing the plain SQL, but using the DataHandler (aka tcemain)!)

@etobi
Copy link
Member Author

etobi commented Jul 8, 2013

Suggestion for syntax:

LIST

coreapi dataApi:list <tablename> [<pid>]
coreapi dataApi:list <tablename> ([<field>=<query>],...) # query by field. multiple field/value pairs are concatinated by AND

GET

coreapi dataApi:get <tablename> <uid>
coreapi dataApi:get <tablename> <uuid> # only available, when EXT:identity is installed

CREATE

coreapi dataApi:create <tablename> <dataAsJson>

DELETE

coreapi dataApi:delete <tablename> <uid>
coreapi dataApi:delete <tablename> <uuid> # only available, when EXT:identity is installed

UPDATE

coreapi dataApi:update <tablename> <uid> <dataAsJson>
coreapi dataApi:update <tablename> <uuid> <dataAsJson> # only available, when EXT:identity is installed

@kaystrobach
Copy link

in the update section you also use dataApi:delete - hope it's a fault.

@etobi
Copy link
Member Author

etobi commented Sep 19, 2013

obviously a typo. thanks for the hint.

@kaystrobach
Copy link

no problem :D

@Konafets Konafets added this to the Backlog milestone Jun 29, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants