-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into password_security_addi…
…tion
- Loading branch information
Showing
3 changed files
with
195 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,191 @@ | ||
@baseUrl = http://localhost:8080 | ||
|
||
### Proper Testing for the Presentation | ||
|
||
### Create a driver | ||
POST {{baseUrl}}/driver/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "BaileyStoodley", | ||
"password": "password", | ||
"name": "Bailey Stoodley", | ||
"phone_number": "1234567890", | ||
"email": "[email protected]", | ||
"max_available_seats": 3, | ||
"licence_plate": "123ABC" | ||
} | ||
|
||
|
||
## Create 3 passengers to populate the CAR | ||
|
||
### Create a passenger | ||
POST {{baseUrl}}/passenger/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "MohamadD", | ||
"password": "password", | ||
"name": "Mohamad D", | ||
"phone_number": "1234567890", | ||
"email": "[email protected]" | ||
} | ||
|
||
### Create a passenger | ||
POST {{baseUrl}}/passenger/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "HenryBatt", | ||
"password": "password", | ||
"name": "Henry Batt", | ||
"phone_number": "1234567890", | ||
"email": "[email protected]" | ||
} | ||
|
||
### Create a passenger | ||
POST {{baseUrl}}/passenger/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "MattYoung", | ||
"password": "password", | ||
"name": "Matt Young", | ||
"phone_number": "1234567890", | ||
"email": "[email protected]" | ||
} | ||
|
||
### Create a passenger | ||
POST {{baseUrl}}/passenger/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "CodyBurnett", | ||
"password": "password", | ||
"name": "Cody Burnett", | ||
"phone_number": "1234567890", | ||
"email": "[email protected]" | ||
} | ||
|
||
### Add Trip | ||
POST {{baseUrl}}/trip/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "BaileyStoodley", | ||
"start_time": "2024-05-31T07:38:56Z", | ||
"end_time": "2024-05-31T08:00:00Z", | ||
"start_location": {"latitude": -27.501250, "longitude": 152.995690, "address": "1 Hawken Drive, St Lucia"}, | ||
"end_location": {"latitude": -27.465950, "longitude": 153.0294604, "address": "380 Queen Street, Brisbane"}, | ||
"seats_remaining": 3, | ||
"distance_addition": 200 | ||
} | ||
|
||
### Add trip request | ||
POST {{baseUrl}}/trip_request/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "MattYoung", | ||
"requested_time": "2024-05-30T18:30:00Z", | ||
"pickup_location": {"latitude": -27.4994772, "longitude": 152.9904883, "address": "31 Ruskin Street, Taringa"}, | ||
"dropoff_location": {"latitude": -27.465950, "longitude": 153.0294604, "address": "380 Queen Street, Brisbane"}, | ||
"pickup_window_start": "2024-05-30T18:00:00Z", | ||
"pickup_window_end": "2024-06-01T10:00:00Z" | ||
} | ||
|
||
### Add trip request | ||
POST {{baseUrl}}/trip_request/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "CodyBurnett", | ||
"requested_time": "2024-05-29T13:30:00Z", | ||
"pickup_location": {"latitude": -27.497280, "longitude": 152.992850, "address": "10 Hiron Street, St Lucia"}, | ||
"dropoff_location": {"latitude": -27.465950, "longitude": 153.0294604, "address": "380 Queen Street, Brisbane"}, | ||
"pickup_window_start": "2024-05-29T18:00:00Z", | ||
"pickup_window_end": "2024-06-05T10:00:00Z" | ||
} | ||
|
||
### Add trip request | ||
POST {{baseUrl}}/trip_request/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "HenryBatt", | ||
"requested_time": "2024-05-30T18:00:00Z", | ||
"pickup_location": {"latitude": -27.500890, "longitude": 152.992080, "address": "5 Camira Street, St Lucia"}, | ||
"dropoff_location": {"latitude": -27.465950, "longitude": 153.0294604, "address": "380 Queen Street, Brisbane"}, | ||
"pickup_window_start": "2024-05-30T08:00:00Z", | ||
"pickup_window_end": "2024-06-01T08:00:00Z" | ||
} | ||
|
||
### GET Check Worked? | ||
POST {{baseUrl}}/trip/get/pending_nearby | ||
Content-Type: application/json | ||
|
||
{ | ||
"trip_id": "d15c50d0-d129-4cd3-99d1-f2367c52a19d", | ||
"username": "BaileyStoodley" | ||
} | ||
|
||
# to show the trip can get full | ||
### Add trip request | ||
POST {{baseUrl}}/trip_request/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "MohamadD", | ||
"requested_time": "2024-05-30T13:30:00Z", | ||
"pickup_location": {"latitude": -27.497280, "longitude": 152.992850, "address": "5 Gailey Road, Toowong"}, | ||
"dropoff_location": {"latitude": -27.465950, "longitude": 153.0294604, "address": "380 Queen Street, Brisbane"}, | ||
"pickup_window_start": "2024-05-29T18:00:00Z", | ||
"pickup_window_end": "2024-06-05T10:00:00Z" | ||
} | ||
|
||
|
||
### GET NEW END POINT POSITIONING ALONG ROUTES | ||
POST {{baseUrl}}/trip/get_route_positions | ||
Content-Type: application/json | ||
|
||
{ | ||
"trip_id": "b5d684de-6e2a-488a-a0e0-bc7ac63f12ff", | ||
"username": "BaileyStoodley" | ||
} | ||
|
||
|
||
|
||
|
||
##### Stuff After Demonstration | ||
|
||
|
||
### Create a passenger | ||
POST {{baseUrl}}/passenger/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "CodyBurnett2", | ||
"password": "password", | ||
"name": "Cody Burnett2", | ||
"phone_number": "1234567890", | ||
"email": "[email protected]" | ||
} | ||
|
||
|
||
### Create a passenger | ||
POST {{baseUrl}}/passenger/create | ||
Content-Type: application/json | ||
|
||
{ | ||
"username": "jDoe15", | ||
"password": "53%32", | ||
"name": "John Doe", | ||
"phone_number": "1234567890", | ||
"email": "[email protected]" | ||
} | ||
|
||
|
||
|
||
### Create a driver | ||
POST {{baseUrl}}/driver/create | ||
Content-Type: application/json | ||
|
@@ -147,7 +333,7 @@ POST {{baseUrl}}/trips/get/all | |
Content-Type: application/json | ||
|
||
{ | ||
"username": "jDoe12" | ||
"username": "BaileyStoodley" | ||
} | ||
|
||
### Get all PENDING trips for a user | ||
|