Skip to content

Commit 7ce6e8b

Browse files
committed
chore: Update OpenAPI specs
1 parent 6ce98f9 commit 7ce6e8b

File tree

1 file changed

+194
-2
lines changed

1 file changed

+194
-2
lines changed

openapi.json

Lines changed: 194 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://developers.hostinger.com",
99
"email": "[email protected]"
1010
},
11-
"version": "0.0.32"
11+
"version": "0.0.33"
1212
},
1313
"servers": [
1414
{
@@ -1249,6 +1249,60 @@
12491249
}
12501250
}
12511251
},
1252+
"/api/domains/v1/portfolio/{domain}": {
1253+
"get": {
1254+
"tags": [
1255+
"Domains: Portfolio"
1256+
],
1257+
"summary": "Get domain",
1258+
"description": "This endpoint retrieves domain .",
1259+
"operationId": "domains_getDomainV1",
1260+
"parameters": [
1261+
{
1262+
"name": "domain",
1263+
"in": "path",
1264+
"description": "Domain name",
1265+
"required": true,
1266+
"schema": {
1267+
"type": "string",
1268+
"example": "mydomain.tld"
1269+
}
1270+
}
1271+
],
1272+
"responses": {
1273+
"200": {
1274+
"description": "Success response",
1275+
"content": {
1276+
"application/json": {
1277+
"schema": {
1278+
"$ref": "#/components/schemas/Domains.V1.Domain.DomainExtendedResource"
1279+
}
1280+
}
1281+
}
1282+
},
1283+
"401": {
1284+
"description": "Unauthenticated",
1285+
"content": {
1286+
"application/json": {
1287+
"schema": {
1288+
"$ref": "#/components/schemas/Common.Schema.UnauthorizedResponseSchema"
1289+
}
1290+
}
1291+
}
1292+
},
1293+
"500": {
1294+
"description": "Error response",
1295+
"content": {
1296+
"application/json": {
1297+
"schema": {
1298+
"$ref": "#/components/schemas/Common.Schema.ErrorResponseSchema"
1299+
}
1300+
}
1301+
}
1302+
}
1303+
}
1304+
}
1305+
},
12521306
"/api/domains/v1/portfolio": {
12531307
"get": {
12541308
"tags": [
@@ -6177,6 +6231,142 @@
61776231
"$ref": "#/components/schemas/Domains.V1.Domain.DomainResource"
61786232
}
61796233
},
6234+
"Domains.V1.Domain.DomainExtendedResource": {
6235+
"properties": {
6236+
"domain": {
6237+
"description": "Domain name",
6238+
"type": "string",
6239+
"example": "mydomain.tld"
6240+
},
6241+
"status": {
6242+
"description": "Status of the domain",
6243+
"type": "string",
6244+
"enum": [
6245+
"active",
6246+
"pending_setup",
6247+
"expired",
6248+
"requested",
6249+
"pending_verification"
6250+
],
6251+
"example": "active"
6252+
},
6253+
"message": {
6254+
"type": "string",
6255+
"nullable": true
6256+
},
6257+
"is_privacy_protection_allowed": {
6258+
"description": "Is privacy protection allowed for the domain",
6259+
"type": "boolean",
6260+
"example": true
6261+
},
6262+
"is_privacy_protected": {
6263+
"description": "Is privacy protection enabled for the domain",
6264+
"type": "boolean",
6265+
"example": false
6266+
},
6267+
"is_lockable": {
6268+
"description": "Is domain allowed to be locked",
6269+
"type": "boolean",
6270+
"example": true
6271+
},
6272+
"is_locked": {
6273+
"description": "Is domain locked",
6274+
"type": "boolean",
6275+
"example": true
6276+
},
6277+
"name_servers": {
6278+
"description": "Name servers",
6279+
"properties": {
6280+
"ns1": {
6281+
"description": "Name server 1",
6282+
"type": "string",
6283+
"example": "ns1.example.tld"
6284+
},
6285+
"ns2": {
6286+
"description": "Name server 2",
6287+
"type": "string",
6288+
"example": "ns2.example.tld"
6289+
}
6290+
},
6291+
"type": "object",
6292+
"example": {
6293+
"ns1": "ns1.example.tld",
6294+
"ns2": "ns2.example.tld"
6295+
}
6296+
},
6297+
"child_name_servers": {
6298+
"description": "Child name servers",
6299+
"type": "array",
6300+
"items": {
6301+
"type": "array",
6302+
"items": {
6303+
"type": "string"
6304+
}
6305+
},
6306+
"example": {
6307+
"ns1.example.tld": [
6308+
"258.231.55.321",
6309+
"258.231.55.322"
6310+
]
6311+
}
6312+
},
6313+
"domain_contacts": {
6314+
"description": "WHOIS profiles",
6315+
"properties": {
6316+
"admin_id": {
6317+
"description": "Admin WHOIS profile ID",
6318+
"type": "integer",
6319+
"example": 114698
6320+
},
6321+
"owner_id": {
6322+
"description": "Owner WHOIS profile ID",
6323+
"type": "integer",
6324+
"example": 614698
6325+
},
6326+
"billing_id": {
6327+
"description": "Billing WHOIS profile ID",
6328+
"type": "integer",
6329+
"example": 154698
6330+
},
6331+
"tech_id": {
6332+
"description": "Technician WHOIS profile ID",
6333+
"type": "integer",
6334+
"example": 524248
6335+
}
6336+
},
6337+
"type": "object"
6338+
},
6339+
"created_at": {
6340+
"type": "string",
6341+
"format": "date-time",
6342+
"example": "2025-02-27T11:54:22Z"
6343+
},
6344+
"updated_at": {
6345+
"type": "string",
6346+
"format": "date-time",
6347+
"example": "2025-02-27T11:54:22Z"
6348+
},
6349+
"60_days_lock_expires_at": {
6350+
"type": "string",
6351+
"format": "date-time",
6352+
"example": "2025-04-27T11:54:22Z",
6353+
"nullable": true
6354+
},
6355+
"registered_at": {
6356+
"type": "string",
6357+
"format": "date-time",
6358+
"example": "2025-02-27T12:54:22Z",
6359+
"nullable": true
6360+
},
6361+
"expires_at": {
6362+
"type": "string",
6363+
"format": "date-time",
6364+
"example": "2025-03-27T11:54:22Z",
6365+
"nullable": true
6366+
}
6367+
},
6368+
"type": "object"
6369+
},
61806370
"Domains.V1.Domain.DomainResource": {
61816371
"properties": {
61826372
"id": {
@@ -6203,7 +6393,9 @@
62036393
"enum": [
62046394
"active",
62056395
"pending_setup",
6206-
"expired"
6396+
"expired",
6397+
"requested",
6398+
"pending_verification"
62076399
],
62086400
"example": "active"
62096401
},

0 commit comments

Comments
 (0)