hostinger-api-sdk 0.0.2 → 0.0.4

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/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 0.0.14
4
+ * API Version: 0.0.17
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -647,6 +647,51 @@ export interface DNSV1SnapshotSnapshotWithContentResource {
647
647
  */
648
648
  'created_at'?: string;
649
649
  }
650
+ /**
651
+ *
652
+ * @export
653
+ * @interface DNSV1ZoneDestroyRequest
654
+ */
655
+ export interface DNSV1ZoneDestroyRequest {
656
+ /**
657
+ * Filter records for deletion
658
+ * @type {Array<DNSV1ZoneDestroyRequestFiltersInner>}
659
+ * @memberof DNSV1ZoneDestroyRequest
660
+ */
661
+ 'filters': Array<DNSV1ZoneDestroyRequestFiltersInner>;
662
+ }
663
+ /**
664
+ *
665
+ * @export
666
+ * @interface DNSV1ZoneDestroyRequestFiltersInner
667
+ */
668
+ export interface DNSV1ZoneDestroyRequestFiltersInner {
669
+ /**
670
+ * Name of the record
671
+ * @type {string}
672
+ * @memberof DNSV1ZoneDestroyRequestFiltersInner
673
+ */
674
+ 'name'?: string;
675
+ /**
676
+ * Type of the record
677
+ * @type {string}
678
+ * @memberof DNSV1ZoneDestroyRequestFiltersInner
679
+ */
680
+ 'type'?: DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
681
+ }
682
+ export declare const DNSV1ZoneDestroyRequestFiltersInnerTypeEnum: {
683
+ readonly A: "A";
684
+ readonly Aaaa: "AAAA";
685
+ readonly Cname: "CNAME";
686
+ readonly Alias: "ALIAS";
687
+ readonly Mx: "MX";
688
+ readonly Txt: "TXT";
689
+ readonly Ns: "NS";
690
+ readonly Soa: "SOA";
691
+ readonly Srv: "SRV";
692
+ readonly Caa: "CAA";
693
+ };
694
+ export type DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = typeof DNSV1ZoneDestroyRequestFiltersInnerTypeEnum[keyof typeof DNSV1ZoneDestroyRequestFiltersInnerTypeEnum];
650
695
  /**
651
696
  *
652
697
  * @export
@@ -669,35 +714,35 @@ export interface DNSV1ZoneNameRecordResource {
669
714
  /**
670
715
  *
671
716
  * @export
672
- * @interface DNSV1ZoneNameResource
717
+ * @interface DNSV1ZoneRecordResource
673
718
  */
674
- export interface DNSV1ZoneNameResource {
719
+ export interface DNSV1ZoneRecordResource {
675
720
  /**
676
721
  * Name of the record (use `@` for wildcard name)
677
722
  * @type {string}
678
- * @memberof DNSV1ZoneNameResource
723
+ * @memberof DNSV1ZoneRecordResource
679
724
  */
680
725
  'name'?: string;
681
726
  /**
682
727
  * Array of [`DNS.V1.Zone.NameRecordResource`](#model/dnsv1zonenamerecordresource)
683
728
  * @type {Array<DNSV1ZoneNameRecordResource>}
684
- * @memberof DNSV1ZoneNameResource
729
+ * @memberof DNSV1ZoneRecordResource
685
730
  */
686
731
  'records'?: Array<DNSV1ZoneNameRecordResource>;
687
732
  /**
688
733
  * TTL (Time-To-Live) of the record
689
734
  * @type {number}
690
- * @memberof DNSV1ZoneNameResource
735
+ * @memberof DNSV1ZoneRecordResource
691
736
  */
692
737
  'ttl'?: number;
693
738
  /**
694
739
  * Type of the record
695
740
  * @type {string}
696
- * @memberof DNSV1ZoneNameResource
741
+ * @memberof DNSV1ZoneRecordResource
697
742
  */
698
- 'type'?: DNSV1ZoneNameResourceTypeEnum;
743
+ 'type'?: DNSV1ZoneRecordResourceTypeEnum;
699
744
  }
700
- export declare const DNSV1ZoneNameResourceTypeEnum: {
745
+ export declare const DNSV1ZoneRecordResourceTypeEnum: {
701
746
  readonly A: "A";
702
747
  readonly Aaaa: "AAAA";
703
748
  readonly Cname: "CNAME";
@@ -709,7 +754,7 @@ export declare const DNSV1ZoneNameResourceTypeEnum: {
709
754
  readonly Srv: "SRV";
710
755
  readonly Caa: "CAA";
711
756
  };
712
- export type DNSV1ZoneNameResourceTypeEnum = typeof DNSV1ZoneNameResourceTypeEnum[keyof typeof DNSV1ZoneNameResourceTypeEnum];
757
+ export type DNSV1ZoneRecordResourceTypeEnum = typeof DNSV1ZoneRecordResourceTypeEnum[keyof typeof DNSV1ZoneRecordResourceTypeEnum];
713
758
  /**
714
759
  *
715
760
  * @export
@@ -735,6 +780,82 @@ export interface DNSV1ZoneResetRequest {
735
780
  */
736
781
  'whitelisted_record_types'?: Array<string>;
737
782
  }
783
+ /**
784
+ *
785
+ * @export
786
+ * @interface DNSV1ZoneUpdateRequest
787
+ */
788
+ export interface DNSV1ZoneUpdateRequest {
789
+ /**
790
+ * If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records\' ttl\'s are updated and new records are appended. If no matching RRs are found, they are created.
791
+ * @type {boolean}
792
+ * @memberof DNSV1ZoneUpdateRequest
793
+ */
794
+ 'overwrite'?: boolean;
795
+ /**
796
+ *
797
+ * @type {Array<DNSV1ZoneUpdateRequestZoneInner>}
798
+ * @memberof DNSV1ZoneUpdateRequest
799
+ */
800
+ 'zone': Array<DNSV1ZoneUpdateRequestZoneInner>;
801
+ }
802
+ /**
803
+ *
804
+ * @export
805
+ * @interface DNSV1ZoneUpdateRequestZoneInner
806
+ */
807
+ export interface DNSV1ZoneUpdateRequestZoneInner {
808
+ /**
809
+ * Name of the record (use `@` for wildcard name)
810
+ * @type {string}
811
+ * @memberof DNSV1ZoneUpdateRequestZoneInner
812
+ */
813
+ 'name': string;
814
+ /**
815
+ * Records assigned to the name
816
+ * @type {Array<DNSV1ZoneUpdateRequestZoneInnerRecordsInner>}
817
+ * @memberof DNSV1ZoneUpdateRequestZoneInner
818
+ */
819
+ 'records'?: Array<DNSV1ZoneUpdateRequestZoneInnerRecordsInner>;
820
+ /**
821
+ * TTL (Time-To-Live) of the record
822
+ * @type {number}
823
+ * @memberof DNSV1ZoneUpdateRequestZoneInner
824
+ */
825
+ 'ttl'?: number;
826
+ /**
827
+ * Type of the record
828
+ * @type {string}
829
+ * @memberof DNSV1ZoneUpdateRequestZoneInner
830
+ */
831
+ 'type': DNSV1ZoneUpdateRequestZoneInnerTypeEnum;
832
+ }
833
+ export declare const DNSV1ZoneUpdateRequestZoneInnerTypeEnum: {
834
+ readonly A: "A";
835
+ readonly Aaaa: "AAAA";
836
+ readonly Cname: "CNAME";
837
+ readonly Alias: "ALIAS";
838
+ readonly Mx: "MX";
839
+ readonly Txt: "TXT";
840
+ readonly Ns: "NS";
841
+ readonly Soa: "SOA";
842
+ readonly Srv: "SRV";
843
+ readonly Caa: "CAA";
844
+ };
845
+ export type DNSV1ZoneUpdateRequestZoneInnerTypeEnum = typeof DNSV1ZoneUpdateRequestZoneInnerTypeEnum[keyof typeof DNSV1ZoneUpdateRequestZoneInnerTypeEnum];
846
+ /**
847
+ *
848
+ * @export
849
+ * @interface DNSV1ZoneUpdateRequestZoneInnerRecordsInner
850
+ */
851
+ export interface DNSV1ZoneUpdateRequestZoneInnerRecordsInner {
852
+ /**
853
+ * Content of the name record
854
+ * @type {string}
855
+ * @memberof DNSV1ZoneUpdateRequestZoneInnerRecordsInner
856
+ */
857
+ 'content': string;
858
+ }
738
859
  /**
739
860
  *
740
861
  * @export
@@ -1791,9 +1912,21 @@ export interface VPSV1VirtualMachineVirtualMachineResource {
1791
1912
  }
1792
1913
  export declare const VPSV1VirtualMachineVirtualMachineResourceStateEnum: {
1793
1914
  readonly Running: "running";
1915
+ readonly Starting: "starting";
1916
+ readonly Stopping: "stopping";
1794
1917
  readonly Stopped: "stopped";
1795
1918
  readonly Creating: "creating";
1796
1919
  readonly Initial: "initial";
1920
+ readonly Error: "error";
1921
+ readonly Suspending: "suspending";
1922
+ readonly Unsuspending: "unsuspending";
1923
+ readonly Suspended: "suspended";
1924
+ readonly Destroying: "destroying";
1925
+ readonly Destroyed: "destroyed";
1926
+ readonly Recreating: "recreating";
1927
+ readonly Restoring: "restoring";
1928
+ readonly Recovery: "recovery";
1929
+ readonly StoppingRecovery: "stopping_recovery";
1797
1930
  };
1798
1931
  export type VPSV1VirtualMachineVirtualMachineResourceStateEnum = typeof VPSV1VirtualMachineVirtualMachineResourceStateEnum[keyof typeof VPSV1VirtualMachineVirtualMachineResourceStateEnum];
1799
1932
  export declare const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum: {
@@ -2284,6 +2417,15 @@ export declare class DNSSnapshotApi extends BaseAPI {
2284
2417
  * @export
2285
2418
  */
2286
2419
  export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration) => {
2420
+ /**
2421
+ * This endpoint deletes selected DNS records for the selected domain.
2422
+ * @summary Delete zone records
2423
+ * @param {string} domain Domain name
2424
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
2425
+ * @param {*} [options] Override http request option.
2426
+ * @throws {RequiredError}
2427
+ */
2428
+ deleteZoneRecordsV1: (domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2287
2429
  /**
2288
2430
  * This endpoint retrieves DNS zone records for a specific domain.
2289
2431
  * @summary Get records
@@ -2301,12 +2443,39 @@ export declare const DNSZoneApiAxiosParamCreator: (configuration?: Configuration
2301
2443
  * @throws {RequiredError}
2302
2444
  */
2303
2445
  resetZoneRecordsV1: (domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2446
+ /**
2447
+ * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
2448
+ * @summary Update zone records
2449
+ * @param {string} domain Domain name
2450
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
2451
+ * @param {*} [options] Override http request option.
2452
+ * @throws {RequiredError}
2453
+ */
2454
+ updateZoneRecordsV1: (domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2455
+ /**
2456
+ * This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
2457
+ * @summary Validate zone records
2458
+ * @param {string} domain Domain name
2459
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
2460
+ * @param {*} [options] Override http request option.
2461
+ * @throws {RequiredError}
2462
+ */
2463
+ validateZoneRecordsV1: (domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2304
2464
  };
2305
2465
  /**
2306
2466
  * DNSZoneApi - functional programming interface
2307
2467
  * @export
2308
2468
  */
2309
2469
  export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2470
+ /**
2471
+ * This endpoint deletes selected DNS records for the selected domain.
2472
+ * @summary Delete zone records
2473
+ * @param {string} domain Domain name
2474
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
2475
+ * @param {*} [options] Override http request option.
2476
+ * @throws {RequiredError}
2477
+ */
2478
+ deleteZoneRecordsV1(domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
2310
2479
  /**
2311
2480
  * This endpoint retrieves DNS zone records for a specific domain.
2312
2481
  * @summary Get records
@@ -2314,7 +2483,7 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2314
2483
  * @param {*} [options] Override http request option.
2315
2484
  * @throws {RequiredError}
2316
2485
  */
2317
- getRecordsV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DNSV1ZoneNameResource>>>;
2486
+ getRecordsV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DNSV1ZoneRecordResource>>>;
2318
2487
  /**
2319
2488
  * This endpoint resets DNS zone to the default records.
2320
2489
  * @summary Reset zone records
@@ -2324,12 +2493,39 @@ export declare const DNSZoneApiFp: (configuration?: Configuration) => {
2324
2493
  * @throws {RequiredError}
2325
2494
  */
2326
2495
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
2496
+ /**
2497
+ * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
2498
+ * @summary Update zone records
2499
+ * @param {string} domain Domain name
2500
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
2501
+ * @param {*} [options] Override http request option.
2502
+ * @throws {RequiredError}
2503
+ */
2504
+ updateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
2505
+ /**
2506
+ * This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
2507
+ * @summary Validate zone records
2508
+ * @param {string} domain Domain name
2509
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
2510
+ * @param {*} [options] Override http request option.
2511
+ * @throws {RequiredError}
2512
+ */
2513
+ validateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
2327
2514
  };
2328
2515
  /**
2329
2516
  * DNSZoneApi - factory interface
2330
2517
  * @export
2331
2518
  */
2332
2519
  export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2520
+ /**
2521
+ * This endpoint deletes selected DNS records for the selected domain.
2522
+ * @summary Delete zone records
2523
+ * @param {string} domain Domain name
2524
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
2525
+ * @param {*} [options] Override http request option.
2526
+ * @throws {RequiredError}
2527
+ */
2528
+ deleteZoneRecordsV1(domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
2333
2529
  /**
2334
2530
  * This endpoint retrieves DNS zone records for a specific domain.
2335
2531
  * @summary Get records
@@ -2337,7 +2533,7 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2337
2533
  * @param {*} [options] Override http request option.
2338
2534
  * @throws {RequiredError}
2339
2535
  */
2340
- getRecordsV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DNSV1ZoneNameResource>>;
2536
+ getRecordsV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DNSV1ZoneRecordResource>>;
2341
2537
  /**
2342
2538
  * This endpoint resets DNS zone to the default records.
2343
2539
  * @summary Reset zone records
@@ -2347,6 +2543,24 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2347
2543
  * @throws {RequiredError}
2348
2544
  */
2349
2545
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
2546
+ /**
2547
+ * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
2548
+ * @summary Update zone records
2549
+ * @param {string} domain Domain name
2550
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
2551
+ * @param {*} [options] Override http request option.
2552
+ * @throws {RequiredError}
2553
+ */
2554
+ updateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
2555
+ /**
2556
+ * This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
2557
+ * @summary Validate zone records
2558
+ * @param {string} domain Domain name
2559
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
2560
+ * @param {*} [options] Override http request option.
2561
+ * @throws {RequiredError}
2562
+ */
2563
+ validateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
2350
2564
  };
2351
2565
  /**
2352
2566
  * DNSZoneApi - object-oriented interface
@@ -2355,6 +2569,16 @@ export declare const DNSZoneApiFactory: (configuration?: Configuration, basePath
2355
2569
  * @extends {BaseAPI}
2356
2570
  */
2357
2571
  export declare class DNSZoneApi extends BaseAPI {
2572
+ /**
2573
+ * This endpoint deletes selected DNS records for the selected domain.
2574
+ * @summary Delete zone records
2575
+ * @param {string} domain Domain name
2576
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
2577
+ * @param {*} [options] Override http request option.
2578
+ * @throws {RequiredError}
2579
+ * @memberof DNSZoneApi
2580
+ */
2581
+ deleteZoneRecordsV1(domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
2358
2582
  /**
2359
2583
  * This endpoint retrieves DNS zone records for a specific domain.
2360
2584
  * @summary Get records
@@ -2363,7 +2587,7 @@ export declare class DNSZoneApi extends BaseAPI {
2363
2587
  * @throws {RequiredError}
2364
2588
  * @memberof DNSZoneApi
2365
2589
  */
2366
- getRecordsV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DNSV1ZoneNameResource[], any>>;
2590
+ getRecordsV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DNSV1ZoneRecordResource[], any>>;
2367
2591
  /**
2368
2592
  * This endpoint resets DNS zone to the default records.
2369
2593
  * @summary Reset zone records
@@ -2374,6 +2598,26 @@ export declare class DNSZoneApi extends BaseAPI {
2374
2598
  * @memberof DNSZoneApi
2375
2599
  */
2376
2600
  resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
2601
+ /**
2602
+ * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
2603
+ * @summary Update zone records
2604
+ * @param {string} domain Domain name
2605
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
2606
+ * @param {*} [options] Override http request option.
2607
+ * @throws {RequiredError}
2608
+ * @memberof DNSZoneApi
2609
+ */
2610
+ updateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
2611
+ /**
2612
+ * This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
2613
+ * @summary Validate zone records
2614
+ * @param {string} domain Domain name
2615
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
2616
+ * @param {*} [options] Override http request option.
2617
+ * @throws {RequiredError}
2618
+ * @memberof DNSZoneApi
2619
+ */
2620
+ validateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any>>;
2377
2621
  }
2378
2622
  /**
2379
2623
  * DomainsPortfolioApi - axios parameter creator