Skip to content

Commit ea4d4a9

Browse files
authored
Merge pull request #77 from oracle/distribution_24.2.0.0
Added distribution specs for release 24.2.0.0
2 parents 3d364c7 + 311685a commit ea4d4a9

File tree

5 files changed

+10377
-6
lines changed

5 files changed

+10377
-6
lines changed
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "OPERA Cloud Distribution Authentication API",
5+
"version": "24.2",
6+
"description": "<p> API to obtain the access token (in the JWT format) that matches the provided credentials issued by the Oracle Hospitality Distribution administrator for a specific Distribution channel partner. The token will then be used by API users to access OPERA Cloud Distribution APIS. Once a token is created, it can be used in multiple subsequent calls until it expires as defined in this API response. </p>\n<p> Username for a channel partner Distribution API account is provisioned by an Oracle administrator at the channel level. It is not an OPERA Cloud (PMS) user and not created or approved by the hotelier. Additionally, for each property, the hotelier will need to enable the channel so that it can access data for their specific hotel in the reservation context. </p>\n<p> More information on how to request a username and temporary password for a registered channel for Distribution APIs:\n <ul>\n <li>Channel partners registered via OHIP receive credential(s) from the Oracle Hospitality Distribution administrator during the channel registration.</li>\n </ul>\n</p><br /><br /> Compatible with OPERA Cloud release 24.2.<br /><br /><p> This document and all content within is available under the Universal Permissive License v 1.0 (https://oss.oracle.com/licenses/upl). Copyright (c) 2020, 2024 Oracle and/or its affiliates.</p>",
7+
"x-summary": "HDP edge service applying pre authorization and pre routing logic. Example: curl --request POST https://HOSTNAME/hdpba/oauth2/v0/token --header 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' --header 'Accept: */*' --data-urlencode 'username=USERNAME' --data-urlencode 'password=USERPASSWORD'",
8+
"termsOfService": "https://www.oracle.com/legal/terms.html",
9+
"contact": {
10+
"email": "[email protected]"
11+
},
12+
"license": {
13+
"name": "UPL",
14+
"url": "https://opensource.org/licenses/upl"
15+
}
16+
},
17+
"schemes": [
18+
"https"
19+
],
20+
"basePath": "/hdpba/oauth2/v1",
21+
"tags": [
22+
{
23+
"name": "Authentication",
24+
"description": "Authentication service"
25+
}
26+
],
27+
"paths": {
28+
"/token": {
29+
"post": {
30+
"description": "<p>This is required to access the OPERA Cloud Distribution REST APIs.</p> <h3>Obtaining a token</h3> <p>To obtain a token include the following body parameters:</p> <ul> <li><strong>username</strong>. set this to your OPERA Cloud Distribution username.</strong></li> <li><strong>password</strong>. Set this to your OPERA Cloud Distribution user's password.</li> </ul></p><p><strong>OperationId:</strong>getToken</p>",
31+
"summary": "Authenticate with the identity server",
32+
"operationId": "getToken",
33+
"produces": [
34+
"application/json"
35+
],
36+
"responses": {
37+
"200": {
38+
"description": "OK",
39+
"schema": {
40+
"$ref": "#/definitions/OAuth2TokenResponse"
41+
}
42+
},
43+
"400": {
44+
"description": "Bad Request. This error is returned if the authentication information provided is not valid."
45+
},
46+
"401": {
47+
"description": "Unauthorized. Username, and/or password doesn't match the IDP records."
48+
},
49+
"500": {
50+
"description": "Returned for any unexpected processing issue that isn't an explicit 400 or 401"
51+
}
52+
},
53+
"parameters": [
54+
{
55+
"name": "x-app-key",
56+
"in": "header",
57+
"type": "string",
58+
"required": false,
59+
"description": "not in use"
60+
},
61+
{
62+
"name": "username",
63+
"description": "Your OPERA Cloud Distribution User Name.",
64+
"in": "formData",
65+
"required": true,
66+
"type": "string"
67+
},
68+
{
69+
"name": "password",
70+
"in": "formData",
71+
"type": "string",
72+
"required": true,
73+
"description": "Your OPERA Cloud Distribution user's password."
74+
}
75+
],
76+
"consumes": [
77+
"application/x-www-form-urlencoded"
78+
],
79+
"tags": [
80+
"Authentication"
81+
],
82+
"x-internal-id": "v0-oauth2Token-post"
83+
}
84+
}
85+
},
86+
"definitions": {
87+
"OAuth2TokenResponse": {
88+
"type": "object",
89+
"description": "OAuth2 token object sent as a response to the token request",
90+
"required": [
91+
"access_token"
92+
],
93+
"properties": {
94+
"access_token": {
95+
"type": "string",
96+
"description": "The access token. Include this in the header for every subsequent request."
97+
},
98+
"expires_in": {
99+
"type": "integer",
100+
"format": "int64",
101+
"description": "Time in seconds for the access token to expire (typically, 3600 i.e. 60 minutes) "
102+
}
103+
}
104+
}
105+
},
106+
"externalDocs": {
107+
"description": "Find out more about Oracle Hospitality",
108+
"url": "https://docs.oracle.com/en/industries/hospitality/integration_platforms.html"
109+
}
110+
}

0 commit comments

Comments
 (0)