/
openapi.yaml
753 lines (753 loc) · 26 KB
/
openapi.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
openapi: 3.0.1
info:
title: Australian Rent Search Plugin
description: A plugin that allows the user to search for an ideal property to rent using ChatGPT.
version: 'v1'
servers:
- url: https://openai-ausrental-search.onrender.com
paths:
/domain/:
get:
operationId: getRentalsUsingDomain
summary: Get a list of available rentals in the area the user is searching using domain.com.au
parameters:
- in: query
name: page
schema:
type: integer
required: false
description: Page of results to request. Starts at 1.
- in: query
name: suburb
schema:
type: string
required: false
description: Suburbs to search for rental properties, formatted as suburb-state-postcode, separated by commas. e.g. chatswood-nsw-2067,gordon-nsw-2072
- in: query
name: bedrooms
schema:
type: string
required: false
description: Number of bedrooms user is requesting. If user wants a minimum number of rooms, format it as a single number. e.g. 2. If user wants a range, format it as min-max. e.g. 2-4. "any" can be used in range values, but not by itself. e.g. 1-any
- in: query
name: price
schema:
type: string
required: false
description: Price range for an apartment. If user wants a maximum price, format it as an integer. e.g. 500. If user wants a range, format it as min-max. e.g. 200-500
- in: query
name: excludedeposittaken
schema:
type: integer
required: false
description: Exclude rental properties with deposits taken
- in: query
name: features
schema:
type: string
required: false
description: Features to search for, separated by commas. Options are petsallowed, gas, builtinwardrobes, gardencourtyard, internallaundry, furnished, balconydeck, study, swimmingpool, airconditioning, secureparking, ensuite, heating and dishwasher
- in: query
name: images
schema:
type: number
required: false
description: Set to 0 to disable image results or any other number to set how many images per result to return. Default value is 2
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/getRentalsResponseDomain'
"500":
description: Server error
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: The reason the request was rejected.
/rentdc/{suburbs}:
get:
operationId: getRentalsUsingRent
summary: Get a list of available rentals in the area the user is searching using rent.com.au
parameters:
- in: path
name: suburbs
schema:
type: string
required: true
description: Suburbs to search for rental properties, formatted as "suburb postcode", separated by commas. e.g. fairfield 2165,penrith 2750
- in: query
name: surrounding_suburbs
schema:
type: string
required: false
description: Set to 1 to include surrounding suburbs, or 0 to only use the exact suburbs entered
- in: query
name: rent_low
schema:
type: integer
required: false
description: Minimum price range for an apartment.
- in: query
name: rent_high
schema:
type: integer
required: false
description: Maximum price range for an apartment.
- in: query
name: page
schema:
type: integer
required: false
description: Page of results to request. Starts at 1
- in: query
name: bedrooms
schema:
type: integer
required: false
description: Minimum number of bedrooms user is requesting
- in: query
name: bathrooms
schema:
type: integer
required: false
description: Minimum number of bathrooms user is requesting
- in: query
name: car_spaces
schema:
type: integer
required: false
description: Minimum number of car spaces user is requesting
- in: query
name: walk_category
schema:
type: integer
required: false
description: Walk category user is requesting. 1 = Walker's Paradise, 2 = Very Walkable, 3 = Somewhat Walkable, 4 = Car Dependant
- in: query
name: nbn_category
schema:
type: integer
required: false
description: Whether NBN internet is required. 0 = Not Required, 1 = Required
- in: query
name: long_term_lease
schema:
type: integer
required: false
description: Whether user requires long term lease. 0 = Not Required, 1 = Required
- in: query
name: build_to_rent
schema:
type: integer
required: false
description: Whether user requires build to rent option. 0 = Not Required, 1 = Required
- in: query
name: images
schema:
type: integer
required: false
description: Set to 0 to disable image results or 1 to include image results. Default value is 1
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/getRentalsResponseRent'
"500":
description: Server error
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: The reason the request was rejected
/realestate/:
get:
operationId: getRentalsUsingRealestate
summary: Get a list of available rentals in the area the user is searching using realestate.com.au
parameters:
- in: query
name: channel
schema:
type: string
required: true
description: Set to rent or buy depending on whether user wants to search for rental properties or houses to buy. Default is rent
- in: query
name: propertyType
schema:
type: string
required: true
description: A type of property the user is looking for. Options are house, apartment, townhouse, villa, unit or all. Default is all
- in: query
name: searchLocation
schema:
type: string
required: true
description: Location user is searching for properties in. Can be suburb, postcode, state or any combination separated by commas. Default is "Penrith, NSW"
- in: query
name: minBedrooms
schema:
type: number
required: false
description: Minimum number of bedrooms user is searching for
- in: query
name: minBathrooms
schema:
type: number
required: false
description: Minimum number of bathrooms user is searching for
- in: query
name: minParkingSpaces
schema:
type: number
required: false
description: Minimum number of parking spaces user is searching for
- in: query
name: pageSize
schema:
type: number
required: false
description: How many listings per page user is requesting. Default is 20
- in: query
name: page
schema:
type: number
required: false
description: What page number user is requesting. Default is 1
- in: query
name: minimumPrice
schema:
type: number
required: false
description: Minimum price of the property. Default is 200
- in: query
name: maximumPrice
schema:
type: number
required: false
description: Maximum price of the property. Default is 600
- in: query
name: surroundingSuburbs
schema:
type: boolean
required: false
description: Whether to search for surrounding suburbs. Default is true
- in: query
name: furnished
schema:
type: boolean
required: false
description: Whether to only include listings that are furnished. Default is false
- in: query
name: petsAllowed
schema:
type: boolean
required: false
description: Whether to only include listings that allow pets. Default is false
- in: query
name: swimmingPool
schema:
type: boolean
required: false
description: Whether to only include listings that have swimming pools. Default is false
- in: query
name: garage
schema:
type: boolean
required: false
description: Whether to only include listings that have a garage. Default is false
- in: query
name: balcony
schema:
type: boolean
required: false
description: Whether to only include listings that have a balcony. Default is false
- in: query
name: outdoorArea
schema:
type: boolean
required: false
description: Whether to only include listings that have an outdoor area. Default is false
- in: query
name: ensuite
schema:
type: boolean
required: false
description: Whether to only include listings that have an ensuite. Default is false
- in: query
name: dishwasher
schema:
type: boolean
required: false
description: Whether to only include listings that have a dishwasher. Default is false
- in: query
name: study
schema:
type: boolean
required: false
description: Whether to only include listings that have a study. Default is false
- in: query
name: builtInRobes
schema:
type: boolean
required: false
description: Whether to only include listings that have built in wardrobes. Default is false
- in: query
name: airConditioning
schema:
type: boolean
required: false
description: Whether to only include listings that have air conditioning. Default is false
- in: query
name: solarPanels
schema:
type: boolean
required: false
description: Whether to only include listings that have a solar panels. Default is false
- in: query
name: heating
schema:
type: boolean
required: false
description: Whether to only include listings that have heating. Default is false
- in: query
name: highEnergyEfficiency
schema:
type: boolean
required: false
description: Whether to only include listings that have high energy efficiency. Default is false
- in: query
name: waterTank
schema:
type: boolean
required: false
description: Whether to only include listings that have a water tank. Default is false
- in: query
name: solarHotWater
schema:
type: boolean
required: false
description: Whether to only include listings that have solar hot water. Default is false
- in: query
name: images
schema:
type: integer
required: false
description: Set to 0 to disable image results or any other number to set how many images per result to return. Default value is 2
- in: query
name: descriptionLength
schema:
type: integer
required: false
description: Set to 0 to disable desciption results or any other number to set the amount of characters to trim the description down to. Default value is 200
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/getRentalsResponseRealestate'
"500":
description: Server error
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: The reason the request was rejected
/flatmates:
get:
operationId: getRentalsUsingFlatmates
summary: Get a list of available rentals in the area the user is searching using flatmates.com.au
parameters:
- in: query
name: locations
schema:
type: string
required: false
description: Locations required, formatted as suburb-postcode. Extras added with a + in between. e.g. "penrith-2750+parramatta-2150"
- in: query
name: page
schema:
type: string
required: false
description: page number to request
- in: query
name: bathroomType
schema:
type: string
required: false
description: Type of bathroom required. Options are "ensuite-or-own" or "ensuite"
- in: query
name: furnishings
schema:
type: string
required: false
description: Furnishings required. Options are "furnished" or "unfurnished"
- in: query
name: parking
schema:
type: string
required: false
description: Parking requirements. Options are "off-street-parking", "on-street-parking" or "no-parking"
- in: query
name: gender
schema:
type: string
required: false
description: Gender preference required. Options are "males", "females" or "couples"
- in: query
name: allFemale
schema:
type: boolean
required: false
description: Whether all female tenants are required
- in: query
name: lengthOfStay
schema:
type: string
required: false
description: Desired length of stay in weeks, months or years. e.g. "1 year"
- in: query
name: lgbtFriendly
schema:
type: boolean
required: false
description: Whether LGBT-friendly tenants are required
- in: query
name: retirees
schema:
type: boolean
required: false
description: Whether the property is suitable for retirees
- in: query
name: students
schema:
type: boolean
required: false
description: Whether the property is suitable for students
- in: query
name: smokers
schema:
type: boolean
required: false
description: Whether the property allows smoking
- in: query
name: backpackers
schema:
type: boolean
required: false
description: Whether the property is suitable for backpackers
- in: query
name: children
schema:
type: boolean
required: false
description: Whether the property is suitable for children
- in: query
name: over40
schema:
type: boolean
required: false
description: Whether the property is suitable for people over 40
- in: query
name: pets
schema:
type: boolean
required: false
description: Whether the property allows pets
- in: query
name: numberOfRooms
schema:
type: string
required: false
description: The number of rooms required
- in: query
name: room
schema:
type: string
required: false
description: The type of room. Options are private-room and shared-room
- in: query
name: shareHouses
schema:
type: boolean
required: false
description: Whether to include share houses in the listings
- in: query
name: dateAvailable
schema:
type: string
required: false
description: Date the rental property is available, formatted as day-month-year. e.g. "03-06-2023"
- in: query
name: minBudget
schema:
type: string
required: false
description: Minimum price for the property
- in: query
name: maxBudget
schema:
type: string
required: false
description: Maximum price for the property
- in: query
name: billsIncluded
schema:
type: boolean
required: false
description: Whether bills are included in the price
- in: query
name: keywordInput
schema:
type: string
required: false
description: Keywords to search in listing descriptions
- in: query
name: wholeProperties
schema:
type: boolean
required: false
description: Whether to include whole properties
- in: query
name: studios
schema:
type: boolean
required: false
description: Whether to include studios
- in: query
name: grannyFlats
schema:
type: boolean
required: false
description: Whether to include granny flats
- in: query
name: studentAccommodation
schema:
type: boolean
required: false
description: Whether to include student accommodations
- in: query
name: homestays
schema:
type: boolean
required: false
description: Whether to include homestays
- in: query
name: images
schema:
type: integer
required: false
description: Set to 0 to disable image results or any other number to set how many images per result to return. Default value is 2
- in: query
name: descriptionLength
schema:
type: integer
required: false
description: Set to 0 to disable desciption results or any other number to set the amount of characters to trim the description down to. Default value is 200
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/getRentalsResponseFlatmates'
"500":
description: Server error
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: The reason the request was rejected
components:
schemas:
getRentalsResponseDomain:
type: object
properties:
totalPages:
type: number
description: Total number of pages to use for pagination.
page:
type: number
description: Current page number to use for pagination.
listingsPerPage:
type: number
description: Number of current listing results per page to use for pagination.
totalListings:
type: number
description: Total number of property listings to use for pagination.
listings:
type: object
additionalProperties:
type: object
properties:
listingModel:
type: object
properties:
address:
type: string
images:
type: array
items:
type: string
description: Image urls to be displayed as images in the chat.
features:
type: object
properties:
baths:
type: number
beds:
type: number
landsize:
type: number
landUnit:
type: string
propertyTypeFormatted:
type: string
url:
type: string
description: URL to the property listing. Start with the root server www.domain.com.au followed by this url.
price:
type: string
inspection:
type: object
properties:
openTime:
type: string
closeTime:
type: string
getRentalsResponseRent:
type: object
properties:
totalListings:
type: number
description: Total number of property listings to use for pagination. You can also use this to work out how many more pages there are to navigate through by dividing the totalListings number by 20 (the number of listings per page)
nextPageNum:
type: number
description: The next page number to navigate to
currentPageNum:
type: number
description: The current page number
listings:
type: array
items:
type: object
properties:
address:
type: string
imageUrl:
type: string
description: URL of the image to be displayed in chat
price:
type: string
features:
type: array
items:
type: string
description: List of features the property has
propType:
type: string
description: Property type
description:
type: string
description: Description of the property listing
url:
type: string
description: URL of the property listing
getRentalsResponseRealestate:
type: object
properties:
totalListings:
type: number
description: Total number of property listings. You can also use this to work out how many more pages there are to navigate through by dividing the totalListings number by the number of listings per page
currentPage:
type: number
description: The current page number
pageSize:
type: number
description: The number of listings per page
listings:
type: array
items:
type: object
properties:
images:
type: array
items:
type: string
prettyUrl:
type: string
description: url of the listing. prepend this url with "https://www.realestate.com.au/"
description:
type: string
price:
type: string
description: price of the listing. pw means per week
propertyType:
type: string
nextInspectionTime:
type: object
properties:
startTime:
type: string
endTime:
type: string
address:
type: string
propertyFeatures:
type: array
items:
type: string
bond:
type: string
dateAvailable:
type: string
getRentalsResponseFlatmates:
type: object
properties:
nextPage:
type: number
description: The next page number for pagination
listings:
type: array
items:
type: object
properties:
url:
type: string
description: URL to the property listing. Start with the root server flatmates.com.au/ followed by this url.
images:
type: array
items:
type: string
price:
type: string
billsIncluded:
type: boolean
bedrooms:
type: number
bathrooms:
type: number
occupants:
type: number
address:
type: string
rooms:
type: string
description:
type: string