@@ -4,7 +4,6 @@ All URIs are relative to *https://developers.hostinger.com*
44
55Method | HTTP request | Description
66------------- | ------------- | -------------
7- [ ** create_node_js_build_from_archive_v1** ] ( HostingNodeJSApi.md#create_node_js_build_from_archive_v1 ) | ** POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive | Create NodeJS build from archive
87[ ** get_node_js_build_logs_v1** ] ( HostingNodeJSApi.md#get_node_js_build_logs_v1 ) | ** GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs | Get NodeJS build logs
98[ ** get_node_js_build_settings_from_archive_v1** ] ( HostingNodeJSApi.md#get_node_js_build_settings_from_archive_v1 ) | ** GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive | Get Node.js build settings from archive
109[ ** list_node_js_builds_v1** ] ( HostingNodeJSApi.md#list_node_js_builds_v1 ) | ** GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | List NodeJS builds
@@ -14,104 +13,6 @@ Method | HTTP request | Description
1413[ ** start_node_js_build_v1** ] ( HostingNodeJSApi.md#start_node_js_build_v1 ) | ** POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | Start Node.js build
1514
1615
17- # ** create_node_js_build_from_archive_v1**
18- > HostingV1NodeJsBuildResource create_node_js_build_from_archive_v1(username, domain, hosting_v1_node_js_create_from_archive_request)
19-
20- Create NodeJS build from archive
21-
22- Upload a project archive, auto-detect build settings, and immediately start a Node.js build.
23-
24- WARNING: on success this overwrites the website's existing contents and cannot be
25- undone — verify this is intended before calling this endpoint.
26-
27- This is the recommended single-step approach for deploying a Node.js application.
28- The archive is uploaded to the website's file storage, build settings are auto-detected
29- from the package.json inside the archive, and the build process starts automatically.
30- Optional override fields take precedence over auto-detected values.
31- Maximum archive size is 50MB.
32-
33- Before archiving, exclude ` node_modules/ ` and any build output directories
34- (e.g. ` dist/ ` , ` .next/ ` , ` build/ ` ) — they are not needed because the build
35- process runs the install step automatically, and including them unnecessarily
36- increases the archive size. This also helps keep the archive well under the 50MB limit.
37-
38- Example (zip):
39- ```
40- zip -r archive.zip . --exclude "node_modules/*" --exclude "dist/*"
41- ```
42-
43- The returned build ` uuid ` can be used to poll progress and retrieve logs via
44- the ` Get Node.js Build Logs ` endpoint.
45-
46- ### Example
47-
48- * Bearer Authentication (apiToken):
49-
50- ``` python
51- import hostinger_api
52- from hostinger_api.models.hosting_v1_node_js_build_resource import HostingV1NodeJsBuildResource
53- from hostinger_api.models.hosting_v1_node_js_create_from_archive_request import HostingV1NodeJsCreateFromArchiveRequest
54- from hostinger_api.rest import ApiException
55- from pprint import pprint
56-
57-
58- # Configure Bearer authorization: apiToken
59- configuration = hostinger_api.Configuration(
60- access_token = os.environ[" BEARER_TOKEN" ]
61- )
62-
63- # Enter a context with an instance of the API client
64- with hostinger_api.ApiClient(configuration) as api_client:
65- # Create an instance of the API class
66- api_instance = hostinger_api.HostingNodeJSApi(api_client)
67- username = ' u123456789' # str |
68- domain = ' mydomain.tld' # str | Domain name
69- hosting_v1_node_js_create_from_archive_request = hostinger_api.HostingV1NodeJsCreateFromArchiveRequest() # HostingV1NodeJsCreateFromArchiveRequest |
70-
71- try :
72- # Create NodeJS build from archive
73- api_response = api_instance.create_node_js_build_from_archive_v1(username, domain, hosting_v1_node_js_create_from_archive_request)
74- print (" The response of HostingNodeJSApi->create_node_js_build_from_archive_v1:\n " )
75- pprint(api_response)
76- except Exception as e:
77- print (" Exception when calling HostingNodeJSApi->create_node_js_build_from_archive_v1: %s \n " % e)
78- ```
79-
80-
81-
82- ### Parameters
83-
84-
85- Name | Type | Description | Notes
86- ------------- | ------------- | ------------- | -------------
87- ** username** | ** str** | |
88- ** domain** | ** str** | Domain name |
89- ** hosting_v1_node_js_create_from_archive_request** | [ ** HostingV1NodeJsCreateFromArchiveRequest** ] ( HostingV1NodeJsCreateFromArchiveRequest.md ) | |
90-
91- ### Return type
92-
93- [ ** HostingV1NodeJsBuildResource** ] ( HostingV1NodeJsBuildResource.md )
94-
95- ### Authorization
96-
97- [ apiToken] ( ../README.md#apiToken )
98-
99- ### HTTP request headers
100-
101- - ** Content-Type** : application/json
102- - ** Accept** : application/json
103-
104- ### HTTP response details
105-
106- | Status code | Description | Response headers |
107- | -------------| -------------| ------------------|
108- ** 200** | Success response | - |
109- ** 422** | Validation error response | - |
110- ** 401** | Unauthenticated response | - |
111- ** 500** | Error response | - |
112-
113- [[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
114-
11516# ** get_node_js_build_logs_v1**
11617> HostingV1NodeJsBuildLogsResource get_node_js_build_logs_v1(username, domain, uuid, from_line=from_line)
11718
0 commit comments