-
Notifications
You must be signed in to change notification settings - Fork 9
/
requests.http
51 lines (41 loc) · 1.38 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
### Register a new bike
POST {{rental}}/bikes?bikeType=city&location=Utrecht
### Generate bikes
# First, generate some bikes
POST {{rental}}/bikes/batch?count=60&type=city
Accept: application/json
### List all
# Show available bikes
GET {{rental}}/bikes
Accept: application/json
### Bike status
# Show bike status
GET {{rental}}/bikes/f6dd253e-8398-48c3-b7f1-49c52c21c594
Accept: application/json
### Request Bike
# Request one of the available bikes
POST {{rental}}/requestBike?bikeId=f6dd253e-8398-48c3-b7f1-49c52c21c594
Accept: application/json
### Find paymentID
# Find the payment for a specific payment reference
GET {{payment}}/findPayment?reference=eaeb5a1f-13df-4611-9e32-228af47e7d04
Accept: application/json
### Accept Payment
# Accept a payment
POST {{payment}}/acceptPayment?id=5588a0ca-c5b2-45e5-aa54-e9a80c91c549
Accept: application/json
### Reject Payment
# Reject a payment
POST {{payment}}/rejectPayment?id=d8be5441-2fde-4bc4-b784-f375734509f9
Accept: application/json
### Bike status (2)
# Show bike status
GET {{rental}}/bikes/91480d9a-20e3-43a7-a88f-8712365a4f4c
Accept: application/json
### Return bike
# Return a bike
POST {{rental}}/returnBike?bikeId=28dc25a1-33cc-42fa-a660-cc19cb8711f1
Accept: application/json
### Generate Rentals
POST {{rental}}/generateRentals?bikeType=city&loops=30&concurrency=10
Accept: text/plain