Skip to content

Latest commit

 

History

History
28 lines (27 loc) · 6.19 KB

commands.md

File metadata and controls

28 lines (27 loc) · 6.19 KB

Commands

Command minimal PJ version Usage Example Development Example Production
createMovement 1.0 Create a new Movement entry - -
createStatement 1.0 Create a new Statement entry - -
enter 1.0 Enter a new data for every step component,movement and statement php src/cli-single.php enter "from component" "to component" "1.23" "2021-12-31T23:00:00.000Z" "invoice" "ponder-source-agreement-192" curl -d '["from component", "to component", "1.23", "2021-12-31T23:00:00.000Z", "invoice", "ponder-source-agreement-192"]' https://example:[email protected]/v1/enter
grant 1.0 Add a new data to componentGrant curl -d'["bob", "from component"]' http://alice:alice123@localhost:8080/v1/grant
hello 1.0 Works more as a test command, to check if registration was successful php src/cli-single.php hello
import-bank-statement 1.0 - php src/cli-single.php import-bank-statement asnbank-CSV ./example.csv "2022-03-31 12:00:00" curl -d '["asnbank-CSV", "2022-03-31 12:00:00"]' -o ./example.csv https://example:[email protected]/v1/import-bank-statement
import-hours 1.1 Import timesheet data through CSV/JSON/XML files php src/cli-single.php import-hours time-CSV ./example.csv "2022-03-31 12:00:00" curl -d '["time-CSV", "2022-03-31 12:00:00"]' -o ./example.csv https://example:[email protected]/v1/import-hours
list-new 1.1 Showing information from movements and statements - curl https://example:[email protected]/v1/list-new
minimal-version 1.0 Check the prejournal version php src/cli-single.php minimal-version 1.0
pta-me 1.0 - -
register <username> <password> 1.0 Register a new user php src/cli-single.php register <username> <password> curl -d'["example","password123"]' https://example:[email protected]/v1/register
claim component 1.2 Protect a new user, give access control php src/cli-single.php claim-component "username" curl -d'["example"]' https://example:[email protected]/v1/claim-component
print-timesheet-json 1.2 Export Timesheet JSON entry the first argument min value, the second max value, third project is optional php src/cli-single.php print-timesheet-json 0 100 "Test" curl -d'["0","100", "Test"]' https://example:[email protected]/v1/print-timesheet-json
print-timesheet-csv 1.2 Export Timesheet CSV entry the first argument min value, the second max value, third project is optional php src/cli-single.php print-timesheet-csv 0 100 "Test" curl -d'["0","100", "Test"]' https://example:[email protected]/v1/print-timesheet-csv
worked-hours 1.2 Importing hours Entry. Timestamp, Worker, Project, Amount, Description php src/cli-single.php worked-hours "20 September 2021" "stichting" "Peppol for the Masses" 4 "Description is optional" curl -d'["23 August 2021", "stichting" "Peppol for the Masses", 4, "description is optional"]' https://example:[email protected]/v1/worked-hours
worked-day 1.2 Importing day Entry. Timestamp, Worker, Project, Amount, Description php src/cli-single.php worked-hours "20 September 2021" "stichting" "Peppol for the Masses" 4 "Description is optional" curl -d'["23 August 2021", "stichting" "Peppol for the Masses", 4, "description is optional"]' https://example:[email protected]/v1/worked-day
worked-week 1.2 Importing week Entry. Timestamp, Worker, Project, Amount, Description php src/cli-single.php worked-hours "20 September 2021" "stichting" "Peppol for the Masses" 4 "Description is optional" curl -d'["23 August 2021", "stichting" "Peppol for the Masses", 4, "description is optional"]' https://example:[email protected]/v1/worked-day
update-entry 1.2 Update timesheet entry. Arguments: timestamp, worker, project, amount, description, id php src/cli-single.php update-entry "23 August 2021" "test" "test" 2 "test" 2 curl -d'["23 August 2021" "Add worker" "Add Project" 2 "Add Description" 2]' https://example:[email protected]/v1/update-entry
remove-entry 1.2 Remove timesheet entry. Arguments type and id php src/cli-single.php remove-entry worked 1 curl -d'["worked", 1]' https://example:[email protected]/v1/remove-entry
wiki-api-export 1.2 Save data from Wiki API like a JSON file and save Information in database. Argument here wiki will be remote_id wiki php src/cli-single.php wiki-api-export wiki curl -d'["wiki"]' https://example:[email protected]/v1/wiki-export
wiki-api-import 1.2 Import data inside Wiki. Argument here wiki will be remote_id php src/cli-single.php wiki-api-import wiki curl -d'["wiki"]' https://example:[email protected]/v1/wiki-import
timeld-api-import Import and export information in TimeLd. Argument here type, id, project, timestamp, amount php src/cli-single.php timeld-api-import "Timesheet" "ismoil/ismoil" "fedb/fedb" http://ex.org/timesheet/1 "22 August 2021" 8 curl -d'["Timesheet", "ismoil/ismoil", "fedb/fedb", http://ex.org/timesheet/1, "22 August 202", 8]' https://example:[email protected]/v1/timeld-api-import
submit-expense (7 words) 1.1 Includes two movements(payment/invoice) php src/cli-single.php submit-expense "28 August 2021" "Dutch railways" "Degrowth Conference train tickets" "transport" 100 "michiel" curl -d'["28 August 2021", "Dutch railways" "Degrowth Conference train tickets", "transport", 100, "michiel"]' https://example:[email protected]/v1/submit-expense
submit-expense (8 words) 1.2 Includes two movements(payment/invoice) php src/cli-single.php submit-expense "28 August 2021" "stichting" "Dutch railways" "Degrowth Conference train tickets" "transport" 100 "michiel" curl -d'["28 August 2021", "Dutch railways" "Degrowth Conference train tickets", "transport", 100, "michiel"]' https://example:[email protected]/v1/submit-expense