-
Notifications
You must be signed in to change notification settings - Fork 19
/
requests.http
35 lines (27 loc) · 980 Bytes
/
requests.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
### Generate bikes
POST {{rental}}/?bikes=20&bikeType=city
Accept: application/json
### List available bikes
GET {{rental}}/bikes
Accept: application/json
### Get bike status
GET {{rental}}/bikes/40208d8f-f338-4ba3-835e-b5026e6bde3e
Accept: application/json
### Request Bike
POST {{rental}}/requestBike?renter=BikeRider&bikeId=ca78f8d5-86a6-4822-9db1-c757360ce8ce
Accept: application/json
### Find payment ID
GET {{payment}}/findPayment?reference=ef6fdaa6-9be3-45a0-ab86-efcde226aea7
Accept: application/json
### Accept payment
POST {{payment}}/acceptPayment?id=c5394643-cde7-4059-abf9-1d9c1389ad53
Accept: application/json
### Reject payment
POST {{payment}}/rejectPayment?id=d8be5441-2fde-4bc4-b784-f375734509f9
Accept: application/json
### Get bike status
GET {{rental}}/bikes/91480d9a-20e3-43a7-a88f-8712365a4f4c
Accept: application/json
### Return bike
POST {{rental}}/returnBike?location=New York&bikeId=40208d8f-f338-4ba3-835e-b5026e6bde3e
Accept: application/json