Created
March 28, 2013 15:49
-
-
Save mattlanham/5264261 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
/m/register | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/register" \ | |
-d "forename=Matthew" \ | |
-d "surname=Lanham" \ | |
-d "email=mattplanys34@swanify.com" \ | |
-d "dob=12/12/1985" \ | |
-d "password=password" \ | |
-d "tac_agreement=1" \ | |
-d "privacy_agreement=1" \ | |
-d "type_id=1" | |
/m/login | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/login" \ | |
-d "email=mattplanys34@swanify.com" \ | |
-d "password=password" | |
/m/login/logout (documented as /m/logout) | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/login/logout" \ | |
-d "session_id=d2ef7515b8e18f4fecd5ce9d9151457170faeab8" | |
/m/login/forgot | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/login/forgot" \ | |
-d "email=mattplanys34@swanify.com" | |
/m/aftercare/activate (documented as /m/after_accident_care/activate) | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/aftercare/activate" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" | |
/m/aftercare/report_crash (documented as m/after_accident_care/reportCrash) | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/aftercare/report_crash" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" \ | |
-d "mobileNo=07814517417" \ | |
-d "forename=Matthew" \ | |
-d "surname=Lanham" \ | |
-d "email=matt@swanify.com" \ | |
-d "vehicleReg=SM57 HWN" \ | |
-d "thirdPartyReg=M666 MSL" \ | |
-d "witnessDet=Fell off bike" \ | |
-d "lat=56" \ | |
-d "long=-3" \ | |
-d "timestamp=1364483402" | |
/m/aftercare/disable (documented as /m/after_accident_care/disable) | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/aftercare/disable" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" | |
m/emergency/alert | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/emergency/alert" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" \ | |
-d "long=-3" \ | |
-d "lat=56" \ | |
-d "hoz_accuracy=1" \ | |
-d "vert_accuracy=1" \ | |
-d "timestamp=1364483402" \ | |
-d "easting=1" \ | |
-d "northing=2" \ | |
-d "mobileNo=07814517417" \ | |
-d "bloodType=A" \ | |
-d "diabetic=0" \ | |
-d "otherMedical=None TEST" | |
/m/poi | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/poi" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" \ | |
-d "poi_type=Photo" \ | |
-d "name=Test" \ | |
-d "road_name=Hello" \ | |
-d "image_id=1364483402" \ | |
-d "long=-3" \ | |
-d "lat=56" \ | |
-d "alt=100" \ | |
-d "hoz_accuracy=1" \ | |
-d "vert_accuracy=1" \ | |
-d "description=None TEST" \ | |
-d "timestamp=1364483402" | |
/m/rest/status (Documented as /m/status/update) | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/rest/status" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" \ | |
-d "comment=Hello Everyone" \ | |
-d "activity=Something" \ | |
-d "long=-3" \ | |
-d "lat=56" | |
/m/routes/start | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/rest/status" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" \ | |
-d "route_name=Route 66" \ | |
-d "activity=Something here" \ | |
-d "comment=Witty comment" \ | |
-d "long=-3" \ | |
-d "lat=56" \ | |
-d "timestamp=1364483402" \ | |
-d "alt=100" \ | |
-d "hoz_accuracy=1" \ | |
-d "vert_accuracy=1" | |
/m/routes/track | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/routes/track" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" \ | |
-d "route_id=1" \ | |
-d "long=-3" \ | |
-d "lat=56" \ | |
-d "alt=100" \ | |
-d "hoz_accuracy=1" \ | |
-d "vert_accuracy=1" \ | |
-d "timestamp=1364483402" | |
/m/routes/addComment | |
Endpoint not found | |
/m/routes/end | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/routes/end" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" \ | |
-d "route_id=1" | |
/m/profile/avatar | |
curl -F "file=@/Users/matthewlanham/Respositories/Real-Rider/public/assets/img/avatar.jpg" http://realrider.swanify.com/m/profile/avatar?session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4 | |
Endpoints that had to be done, that were not documented, or part of the contract, freebies if you like... | |
/m/editSettings | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/editSettings" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" \ | |
-d "profile_forename=Matthew1" \ | |
-d "profile_surname=Lanham2" \ | |
-d "profile_email=matt+planys67@swanify.com" \ | |
-d "profile_home_town=Edinburgh" \ | |
-d "profile_password_confirm=Cheese1" \ | |
-d "profile_password=Cheese1" \ | |
-d "profile_bike_model=Honda" | |
/m/network/invite | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/editSettings" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" \ | |
-d "name=Matthew Lanham" \ | |
-d "email=matt@swanify.com" | |
/m/network/private_message | |
curl --include \ | |
--request POST \ | |
"http://realrider.swanify.com/m/network/private_message" \ | |
-d "session_id=a378e58eb16efd8c6b19b448b63b6a1edeb8f5a4" \ | |
-d "send_id=4" \ | |
-d "message=Hello" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment