Last active
June 7, 2018 07:56
-
-
Save eloiweb3/57bec2a3c3880c1772d7ce7962596f24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To see log from Core (API) | |
cd ...fliit-core | |
tail -f log/development.log | |
bin/rails generate migration AddWindowStartAtMinutesToTourPresets window_start_at_minutes:integer | |
bin/rails generate migration AddWindowEndAtMinutesToTourPresets window_end_at_minutes:integer | |
bin/rails generate migration AddTimeWindowToTourPresets window_start_at_minutes:integer window_end_at_minutes:integer | |
curl -H "Content-Type: application/json" -u "86607224-7b5f-43db-a14f-c4bdc9fd26f8:" -X POST http://localhost:3000/v1/task/lr8fK94H3gQIn07KBxjpb/state_event -d' | |
{ | |
"name": "started" | |
}' | |
curl -H "Content-Type: application/json" -u "86607224-7b5f-43db-a14f-c4bdc9fd26f8:" -X POST http://localhost:3000/v1/task/2b48872bb3177105d12ed/state_event -d' | |
{ | |
"name": "arrived" | |
}' | |
curl -H "Content-Type: application/json" -u "86607224-7b5f-43db-a14f-c4bdc9fd26f8:" -X POST http://localhost:3000/v1/task/2b48872bb3177105d12ed/state_event -d' | |
{ | |
"name": "delivered" | |
}' | |
curl -H "Content-Type: application/json" -u "86607224-7b5f-43db-a14f-c4bdc9fd26f8:" -X POST http://localhost:3000/v1/task/lr8fK94H3gQIn07KBxjpb/state_event -d' | |
{ | |
"name": "started" | |
}' | |
curl -H "Content-Type: application/json" -u "86607224-7b5f-43db-a14f-c4bdc9fd26f8:" -X POST http://localhost:3000/v1/task_preset -d' | |
{ | |
recipient: { | |
city: "Berlin", | |
country: "Germany", | |
street: "Zossener Straße", | |
street_number: "55-58", | |
zipcode: "10961", | |
}, | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My commands