Skip to content

Commit 0a7b041

Browse files
committed
chore: SDK update
1 parent b2a9da2 commit 0a7b041

9 files changed

Lines changed: 20 additions & 120 deletions

File tree

.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

.openapi-generator/FILES

Lines changed: 0 additions & 9 deletions
This file was deleted.

.openapi-generator/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

api.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
/* eslint-disable */
33
/**
44
* Hostinger API
5-
* > [!caution] > Currently, this API is in beta stage, meaning that breaking changes, while unlikely, might be introduced. > If you encounter any issues or have any feedback, please create an issue on the [Github Repository](https://github.com/hostinger/api/issues). # Overview The Hostinger API provides a comprehensive set of endpoints that allow developers to interact with Hostinger\'s services programmatically. This API enables you to manage various aspects of your Hostinger account. The Hostinger API is a (mostly) RESTful API that uses standard HTTP methods and status codes. # Authentication The Hostinger API uses tokens for authentication. To authenticate your requests, you need to include a valid bearer token in the Authorization header of your HTTP requests: ```yaml Authorization: Bearer YOUR_API_TOKEN ``` API tokens for individual users can be created and managed from the [VPS page](https://hpanel.hostinger.com/vps) of the Hostinger Panel. Tokens will have same permissions as the owning user. Optionally, tokens can be set to expire after a certain period of time. # Rate Limiting To ensure fair usage and prevent abuse, the API enforces rate limits on the number of requests that can be made within a certain time period. If you exceed the rate limit, you will receive a 429 Too Many Requests response. Rate limit headers are included in the response to help you manage your requests. Your IP address might get temporarily blocked if you exceed the rate limit multiple times. # Parameters All requests sent to API must have the content type `application/json`. `POST`, `PUT`, `PATCH` methods may include a JSON object in the request body. Documentation provides required structure and examples of the object. Some endpoints require path parameters. These parameters are included in the URL path and are marked with curly braces. # Pagination Some endpoints return a large number of items. To make these responses more manageable, the API uses pagination. By default, the API returns 50 items per page. The page number can be specified using the `page` query parameter, for example: `/api/vps/v1/public-keys?page=2` # Errors The Hostinger API uses standard HTTP status codes to indicate the success or failure of a request. In case of an error, the API will return a JSON response with an `error` field, containing a human-readable error message. Error responses also contain a `correlation_id` field which can be used to identify the request in case you need to contact support. # Change log For information on the latest changes to the API, please refer to the [change log](https://github.com/hostinger/api/blob/main/CHANGELOG.md). # Support If you have any questions, feedback or feature requests, please create an [issue](https://github.com/hostinger/api/issues) or [discussion](https://github.com/hostinger/api/discussions) on the repository. For any support take a look at our [Github Repository](https://github.com/hostinger/api/), dedicated to the Hostinger API.
65
*
7-
* The version of the OpenAPI document: 0.0.1-beta
8-
*
6+
* @version 0.0.1-beta
7+
* @url https://github.com/hostinger/api-typescript-sdk
98
*
10-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11-
* https://openapi-generator.tech
12-
* Do not edit the class manually.
9+
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10+
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
1311
*/
1412

1513

base.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
/* eslint-disable */
33
/**
44
* Hostinger API
5-
* > [!caution] > Currently, this API is in beta stage, meaning that breaking changes, while unlikely, might be introduced. > If you encounter any issues or have any feedback, please create an issue on the [Github Repository](https://github.com/hostinger/api/issues). # Overview The Hostinger API provides a comprehensive set of endpoints that allow developers to interact with Hostinger\'s services programmatically. This API enables you to manage various aspects of your Hostinger account. The Hostinger API is a (mostly) RESTful API that uses standard HTTP methods and status codes. # Authentication The Hostinger API uses tokens for authentication. To authenticate your requests, you need to include a valid bearer token in the Authorization header of your HTTP requests: ```yaml Authorization: Bearer YOUR_API_TOKEN ``` API tokens for individual users can be created and managed from the [VPS page](https://hpanel.hostinger.com/vps) of the Hostinger Panel. Tokens will have same permissions as the owning user. Optionally, tokens can be set to expire after a certain period of time. # Rate Limiting To ensure fair usage and prevent abuse, the API enforces rate limits on the number of requests that can be made within a certain time period. If you exceed the rate limit, you will receive a 429 Too Many Requests response. Rate limit headers are included in the response to help you manage your requests. Your IP address might get temporarily blocked if you exceed the rate limit multiple times. # Parameters All requests sent to API must have the content type `application/json`. `POST`, `PUT`, `PATCH` methods may include a JSON object in the request body. Documentation provides required structure and examples of the object. Some endpoints require path parameters. These parameters are included in the URL path and are marked with curly braces. # Pagination Some endpoints return a large number of items. To make these responses more manageable, the API uses pagination. By default, the API returns 50 items per page. The page number can be specified using the `page` query parameter, for example: `/api/vps/v1/public-keys?page=2` # Errors The Hostinger API uses standard HTTP status codes to indicate the success or failure of a request. In case of an error, the API will return a JSON response with an `error` field, containing a human-readable error message. Error responses also contain a `correlation_id` field which can be used to identify the request in case you need to contact support. # Change log For information on the latest changes to the API, please refer to the [change log](https://github.com/hostinger/api/blob/main/CHANGELOG.md). # Support If you have any questions, feedback or feature requests, please create an [issue](https://github.com/hostinger/api/issues) or [discussion](https://github.com/hostinger/api/discussions) on the repository. For any support take a look at our [Github Repository](https://github.com/hostinger/api/), dedicated to the Hostinger API.
65
*
7-
* The version of the OpenAPI document: 0.0.1-beta
8-
*
6+
* @version 0.0.1-beta
7+
* @url https://github.com/hostinger/api-typescript-sdk
98
*
10-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11-
* https://openapi-generator.tech
12-
* Do not edit the class manually.
9+
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10+
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
1311
*/
1412

1513

common.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
/* eslint-disable */
33
/**
44
* Hostinger API
5-
* > [!caution] > Currently, this API is in beta stage, meaning that breaking changes, while unlikely, might be introduced. > If you encounter any issues or have any feedback, please create an issue on the [Github Repository](https://github.com/hostinger/api/issues). # Overview The Hostinger API provides a comprehensive set of endpoints that allow developers to interact with Hostinger\'s services programmatically. This API enables you to manage various aspects of your Hostinger account. The Hostinger API is a (mostly) RESTful API that uses standard HTTP methods and status codes. # Authentication The Hostinger API uses tokens for authentication. To authenticate your requests, you need to include a valid bearer token in the Authorization header of your HTTP requests: ```yaml Authorization: Bearer YOUR_API_TOKEN ``` API tokens for individual users can be created and managed from the [VPS page](https://hpanel.hostinger.com/vps) of the Hostinger Panel. Tokens will have same permissions as the owning user. Optionally, tokens can be set to expire after a certain period of time. # Rate Limiting To ensure fair usage and prevent abuse, the API enforces rate limits on the number of requests that can be made within a certain time period. If you exceed the rate limit, you will receive a 429 Too Many Requests response. Rate limit headers are included in the response to help you manage your requests. Your IP address might get temporarily blocked if you exceed the rate limit multiple times. # Parameters All requests sent to API must have the content type `application/json`. `POST`, `PUT`, `PATCH` methods may include a JSON object in the request body. Documentation provides required structure and examples of the object. Some endpoints require path parameters. These parameters are included in the URL path and are marked with curly braces. # Pagination Some endpoints return a large number of items. To make these responses more manageable, the API uses pagination. By default, the API returns 50 items per page. The page number can be specified using the `page` query parameter, for example: `/api/vps/v1/public-keys?page=2` # Errors The Hostinger API uses standard HTTP status codes to indicate the success or failure of a request. In case of an error, the API will return a JSON response with an `error` field, containing a human-readable error message. Error responses also contain a `correlation_id` field which can be used to identify the request in case you need to contact support. # Change log For information on the latest changes to the API, please refer to the [change log](https://github.com/hostinger/api/blob/main/CHANGELOG.md). # Support If you have any questions, feedback or feature requests, please create an [issue](https://github.com/hostinger/api/issues) or [discussion](https://github.com/hostinger/api/discussions) on the repository. For any support take a look at our [Github Repository](https://github.com/hostinger/api/), dedicated to the Hostinger API.
65
*
7-
* The version of the OpenAPI document: 0.0.1-beta
8-
*
6+
* @version 0.0.1-beta
7+
* @url https://github.com/hostinger/api-typescript-sdk
98
*
10-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11-
* https://openapi-generator.tech
12-
* Do not edit the class manually.
9+
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10+
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
1311
*/
1412

1513

configuration.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
/* eslint-disable */
33
/**
44
* Hostinger API
5-
* > [!caution] > Currently, this API is in beta stage, meaning that breaking changes, while unlikely, might be introduced. > If you encounter any issues or have any feedback, please create an issue on the [Github Repository](https://github.com/hostinger/api/issues). # Overview The Hostinger API provides a comprehensive set of endpoints that allow developers to interact with Hostinger\'s services programmatically. This API enables you to manage various aspects of your Hostinger account. The Hostinger API is a (mostly) RESTful API that uses standard HTTP methods and status codes. # Authentication The Hostinger API uses tokens for authentication. To authenticate your requests, you need to include a valid bearer token in the Authorization header of your HTTP requests: ```yaml Authorization: Bearer YOUR_API_TOKEN ``` API tokens for individual users can be created and managed from the [VPS page](https://hpanel.hostinger.com/vps) of the Hostinger Panel. Tokens will have same permissions as the owning user. Optionally, tokens can be set to expire after a certain period of time. # Rate Limiting To ensure fair usage and prevent abuse, the API enforces rate limits on the number of requests that can be made within a certain time period. If you exceed the rate limit, you will receive a 429 Too Many Requests response. Rate limit headers are included in the response to help you manage your requests. Your IP address might get temporarily blocked if you exceed the rate limit multiple times. # Parameters All requests sent to API must have the content type `application/json`. `POST`, `PUT`, `PATCH` methods may include a JSON object in the request body. Documentation provides required structure and examples of the object. Some endpoints require path parameters. These parameters are included in the URL path and are marked with curly braces. # Pagination Some endpoints return a large number of items. To make these responses more manageable, the API uses pagination. By default, the API returns 50 items per page. The page number can be specified using the `page` query parameter, for example: `/api/vps/v1/public-keys?page=2` # Errors The Hostinger API uses standard HTTP status codes to indicate the success or failure of a request. In case of an error, the API will return a JSON response with an `error` field, containing a human-readable error message. Error responses also contain a `correlation_id` field which can be used to identify the request in case you need to contact support. # Change log For information on the latest changes to the API, please refer to the [change log](https://github.com/hostinger/api/blob/main/CHANGELOG.md). # Support If you have any questions, feedback or feature requests, please create an [issue](https://github.com/hostinger/api/issues) or [discussion](https://github.com/hostinger/api/discussions) on the repository. For any support take a look at our [Github Repository](https://github.com/hostinger/api/), dedicated to the Hostinger API.
65
*
7-
* The version of the OpenAPI document: 0.0.1-beta
8-
*
6+
* @version 0.0.1-beta
7+
* @url https://github.com/hostinger/api-typescript-sdk
98
*
10-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11-
* https://openapi-generator.tech
12-
* Do not edit the class manually.
9+
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10+
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
1311
*/
1412

1513

git_push.sh

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)