@apifreaks/openapi-specs 0.4.20 → 0.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4020 -214
- package/dist/index.js +4020 -214
- package/dist/specs/commodity/historical-commodity-prices.yaml +30 -11
- package/dist/specs/dns/bulk-dns-lookup.yaml +214 -33
- package/dist/specs/dns/dns-lookup.yaml +9 -1
- package/dist/specs/financial/bulk-vat-rates-country.yaml +22 -4
- package/dist/specs/geography/flags-supported.yaml +18 -10
- package/dist/specs/timezone/timezone-converter.yaml +36 -8
- package/dist/specs/timezone/timezone-lookup.yaml +36 -10
- package/dist/specs/weather/time-series-weather.yaml +6 -7
- package/dist/specs/whois/asn-lookup.yaml +676 -37
- package/dist/specs/whois/bulk-whois-lookup.yaml +480 -2
- package/dist/specs/whois/domain-whois-history-lookup.yaml +222 -2
- package/dist/specs/whois/reverse-whois.yaml +316 -8
- package/dist/specs/whois/whois-domain-lookup.yaml +482 -11
- package/dist/specs/whois/whois-ip-lookup.yaml +306 -12
- package/package.json +1 -1
- package/specs/commodity/historical-commodity-prices.json +37 -11
- package/specs/dns/bulk-dns-lookup.json +274 -29
- package/specs/dns/dns-lookup.json +13 -2
- package/specs/financial/bulk-vat-rates-country.json +33 -4
- package/specs/geography/flags-supported.json +20 -13
- package/specs/timezone/timezone-converter.json +48 -8
- package/specs/timezone/timezone-lookup.json +53 -10
- package/specs/weather/time-series-weather.json +7 -7
- package/specs/whois/asn-lookup.json +878 -54
- package/specs/whois/bulk-whois-lookup.json +612 -2
- package/specs/whois/domain-whois-history-lookup.json +307 -2
- package/specs/whois/reverse-whois.json +453 -9
- package/specs/whois/whois-domain-lookup.json +632 -11
- package/specs/whois/whois-ip-lookup.json +424 -12
|
@@ -360,7 +360,7 @@ paths:
|
|
|
360
360
|
X-AF-Credits-Cost:
|
|
361
361
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
362
362
|
'400':
|
|
363
|
-
description: Bad Request — Invalid coordinates, timezone name, IP address, or
|
|
363
|
+
description: Bad Request — Invalid coordinates, timezone name, IP address, airport code, LO code format, language, or non-numeric coordinate
|
|
364
364
|
content:
|
|
365
365
|
application/json:
|
|
366
366
|
schema:
|
|
@@ -386,11 +386,23 @@ paths:
|
|
|
386
386
|
summary: Invalid ICAO code
|
|
387
387
|
value:
|
|
388
388
|
message: 'Invalid ICAO code: INVALID. ICAO code must be in the format of AAAA.'
|
|
389
|
+
InvalidLoCodeFormat:
|
|
390
|
+
summary: Malformed UN/LOCODE
|
|
391
|
+
value:
|
|
392
|
+
message: 'Invalid LOCode: ABC. LOCode must start with the first two characters as alphabets followed by three alphanumeric characters.'
|
|
393
|
+
InvalidLanguage:
|
|
394
|
+
summary: Unsupported lang value
|
|
395
|
+
value:
|
|
396
|
+
message: This 'xx' lang is not valid. Please use 'en' as the default language
|
|
397
|
+
NonNumericCoordinate:
|
|
398
|
+
summary: Non-numeric lat or long
|
|
399
|
+
value:
|
|
400
|
+
message: Invalid value 'abc' for parameter 'lat'.
|
|
389
401
|
headers:
|
|
390
402
|
X-AF-Credits-Cost:
|
|
391
403
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
392
404
|
'404':
|
|
393
|
-
description: Not Found — Location address not found, or LO code has no matching data
|
|
405
|
+
description: Not Found — Location address not found, or airport code / LO code has no matching data
|
|
394
406
|
content:
|
|
395
407
|
application/json:
|
|
396
408
|
schema:
|
|
@@ -404,6 +416,24 @@ paths:
|
|
|
404
416
|
summary: UN/LOCODE not found
|
|
405
417
|
value:
|
|
406
418
|
message: '''Data not found for the provided LO code: XXXXX Please contact at support@ipgeolocation.io if provided LO code exists.'''
|
|
419
|
+
AirportNotFound:
|
|
420
|
+
summary: IATA/ICAO airport code not found
|
|
421
|
+
value:
|
|
422
|
+
message: '''Data not found for the provided airport code: ZZZ Please contact at support@ipgeolocation.io if provided airport code exists.'''
|
|
423
|
+
headers:
|
|
424
|
+
X-AF-Credits-Cost:
|
|
425
|
+
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
426
|
+
'423':
|
|
427
|
+
description: Locked — Bogon or reserved IP address
|
|
428
|
+
content:
|
|
429
|
+
application/json:
|
|
430
|
+
schema:
|
|
431
|
+
$ref: '#/components/schemas/ErrorResponse'
|
|
432
|
+
examples:
|
|
433
|
+
BogonIp:
|
|
434
|
+
summary: Bogon or reserved IP address
|
|
435
|
+
value:
|
|
436
|
+
message: '''192.168.1.1'' is a bogon IP address.'
|
|
407
437
|
headers:
|
|
408
438
|
X-AF-Credits-Cost:
|
|
409
439
|
$ref: '#/components/headers/X-AF-Credits-Cost'
|
|
@@ -633,12 +663,10 @@ components:
|
|
|
633
663
|
type: string
|
|
634
664
|
description: The full name of the airport.
|
|
635
665
|
latitude:
|
|
636
|
-
type:
|
|
637
|
-
format: float
|
|
666
|
+
type: string
|
|
638
667
|
description: The latitude coordinate of the airport.
|
|
639
668
|
longitude:
|
|
640
|
-
type:
|
|
641
|
-
format: float
|
|
669
|
+
type: string
|
|
642
670
|
description: The longitude coordinate of the airport.
|
|
643
671
|
elevation_ft:
|
|
644
672
|
type: integer
|
|
@@ -687,12 +715,10 @@ components:
|
|
|
687
715
|
type: string
|
|
688
716
|
description: The type of location as comma-separated list of facilities (e.g., Port, Rail Terminal, Road Terminal, Airport).
|
|
689
717
|
latitude:
|
|
690
|
-
type:
|
|
691
|
-
format: float
|
|
718
|
+
type: string
|
|
692
719
|
description: The latitude coordinate of the location.
|
|
693
720
|
longitude:
|
|
694
|
-
type:
|
|
695
|
-
format: float
|
|
721
|
+
type: string
|
|
696
722
|
description: The longitude coordinate of the location.
|
|
697
723
|
ErrorResponse:
|
|
698
724
|
type: object
|
|
@@ -52,13 +52,13 @@ paths:
|
|
|
52
52
|
in: query
|
|
53
53
|
schema:
|
|
54
54
|
type: number
|
|
55
|
-
description: Latitude of the location, used together with long. A value of exactly 0 is treated as missing by the live API and
|
|
55
|
+
description: Latitude of the location, used together with long. A value of exactly 0 is treated as missing by the live API, and the location is then inferred from the requester IP instead of returning an error, so use a small non-zero value (e.g. 0.0001) for equator queries.
|
|
56
56
|
required: false
|
|
57
57
|
- name: long
|
|
58
58
|
in: query
|
|
59
59
|
schema:
|
|
60
60
|
type: number
|
|
61
|
-
description: Longitude of the location, used together with lat. A value of exactly 0 is treated as missing by the live API and
|
|
61
|
+
description: Longitude of the location, used together with lat. A value of exactly 0 is treated as missing by the live API, and the location is then inferred from the requester IP instead of returning an error, so use a small non-zero value (e.g. 0.0001) for prime-meridian queries.
|
|
62
62
|
required: false
|
|
63
63
|
- name: ip
|
|
64
64
|
in: query
|
|
@@ -816,11 +816,10 @@ components:
|
|
|
816
816
|
TimeSeriesData:
|
|
817
817
|
type: object
|
|
818
818
|
description: Time-series data object keyed by date (YYYY-MM-DD). Each key is a date and the value is a TimeSeriesDay containing daily aggregates, hourly readings, and astronomy data.
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
- date
|
|
819
|
+
additionalProperties:
|
|
820
|
+
$ref: '#/components/schemas/TimeSeriesDay'
|
|
821
|
+
propertyNames:
|
|
822
|
+
pattern: ^\d{4}-\d{2}-\d{2}$
|
|
824
823
|
headers:
|
|
825
824
|
X-AF-Credits-Cost:
|
|
826
825
|
description: Specifies the number of credits consumed by the current request.
|