Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,88 @@
},
"paths": {
"/ocs/v2.php/apps/terms_of_service/terms": {
"get": {
"operationId": "terms-index",
"summary": "Get all available terms for the current country",
"tags": [
"terms"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "Get list successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"terms",
"languages",
"hasSigned"
],
"properties": {
"terms": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Terms"
}
},
"languages": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"hasSigned": {
"type": "boolean"
}
}
}
}
}
}
}
}
}
}
}
},
"post": {
"operationId": "terms-create",
"summary": "Create new terms",
Expand Down Expand Up @@ -268,6 +350,83 @@
}
},
"/ocs/v2.php/apps/terms_of_service/sign": {
"post": {
"operationId": "signing-sign-terms",
"summary": "As a logged in user sign the terms",
"tags": [
"signing"
],
"security": [
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"termId"
],
"properties": {
"termId": {
"type": "integer",
"format": "int64",
"description": "The terms the user signed"
}
}
}
}
}
},
"parameters": [
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "Signed successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
}
}
},
"delete": {
"operationId": "signing-reset-all-signatories",
"summary": "Reset the signatories of all accounts",
Expand Down
38 changes: 19 additions & 19 deletions vendor-bin/openapi-extractor/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading