Skip to content

Commit

Permalink
YD-60 Add specific api docs for every app version (#164)
Browse files Browse the repository at this point in the history
* feat: add api docs for every app version

* fix: after merge fix
  • Loading branch information
bwnek authored Jul 5, 2024
1 parent 7a98f20 commit 3450240
Show file tree
Hide file tree
Showing 59 changed files with 66,781 additions and 57 deletions.
710 changes: 710 additions & 0 deletions api/64/ManageConsents.json

Large diffs are not rendered by default.

425 changes: 425 additions & 0 deletions api/64/ManageConsents.yaml

Large diffs are not rendered by default.

173 changes: 173 additions & 0 deletions api/64/SMS.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
{
"openapi": "3.0.0",
"info": {
"title": "YetiForce API for SMS. Type: SMS",
"description": "",
"termsOfService": "https://yetiforce.com/",
"contact": {
"name": "Devs API Team",
"url": "https://yetiforce.com/",
"email": "[email protected]"
},
"license": {
"name": "YetiForce Public License",
"url": "https://yetiforce.com/en/yetiforce/license"
},
"version": "0.1"
},
"servers": [
{
"url": "https://gitdeveloper.yetiforce.com",
"description": "Demo server of the development version"
},
{
"url": "https://gitstable.yetiforce.com",
"description": "Demo server of the latest stable version"
}
],
"paths": {
"/webservice/SMS/SMSAPI/Reception": {
"get": {
"tags": [
"SMSAPI"
],
"summary": "Receipt of SMS",
"description": "Add record.",
"externalDocs": {
"description": "SMSApi Documentation",
"url": "https://www.smsapi.pl/docs"
},
"operationId": "1d5b693764111be12b9441546ea6e2cb",
"responses": {
"200": {
"description": "Result",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SMS_SMSAPI_Post_Reception"
}
}
}
},
"401": {
"description": "`No sent token` OR `Invalid token` OR `wrong data provided in the request`"
},
"403": {
"description": "No permissions for module"
},
"405": {
"description": "Method Not Allowed"
}
},
"security": [
{
"ApiKeyAuth": [],
"token": []
}
]
}
},
"/webservice/SMS/SMSAPI/Report": {
"get": {
"tags": [
"SMSAPI"
],
"summary": "Report for sms",
"description": "Update record status.",
"externalDocs": {
"description": "SMSApi Documentation",
"url": "https://www.smsapi.pl/docs"
},
"operationId": "82162b057882b4798a1d4844f9e0161f",
"responses": {
"200": {
"description": "Result",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SMS_SMSAPI_Get_Report"
}
}
}
},
"401": {
"description": "`No sent token` OR `Invalid token` OR `wrong data provided in the request`"
},
"403": {
"description": "No permissions for module"
},
"405": {
"description": "Method Not Allowed"
}
},
"security": [
{
"ApiKeyAuth": [],
"token": []
}
]
},
"post": {
"tags": [
"SMSAPI"
],
"summary": "Report for sms",
"description": "Update record status.",
"externalDocs": {
"description": "SMSApi Documentation",
"url": "https://www.smsapi.pl/docs"
},
"operationId": "2d104552585271b46f199a9df6b49930",
"responses": {
"200": {
"description": "Result",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SMS_SMSAPI_Post_Report"
}
}
}
},
"401": {
"description": "`No sent token` OR `Invalid token` OR `wrong data provided in the request`"
},
"403": {
"description": "No permissions for module"
},
"405": {
"description": "Method Not Allowed"
}
},
"security": [
{
"ApiKeyAuth": [],
"token": []
}
]
}
}
},
"components": {
"schemas": {
"SMS_SMSAPI_Post_Reception": {
"title": "Response",
"description": "Response",
"type": "string",
"example": "OK"
},
"SMS_SMSAPI_Get_Report": {
"title": "Response",
"description": "Response",
"type": "string",
"example": "OK"
},
"SMS_SMSAPI_Post_Report": {
"title": "Response",
"description": "Response",
"type": "string",
"example": "OK"
}
}
}
}
129 changes: 129 additions & 0 deletions api/64/SMS.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
openapi: 3.0.0
info:
title: 'YetiForce API for SMS. Type: SMS'
description: ''
termsOfService: 'https://yetiforce.com/'
contact:
name: 'Devs API Team'
url: 'https://yetiforce.com/'
email: [email protected]
license:
name: 'YetiForce Public License'
url: 'https://yetiforce.com/en/yetiforce/license'
version: '0.1'
servers:
-
url: 'https://gitdeveloper.yetiforce.com'
description: 'Demo server of the development version'
-
url: 'https://gitstable.yetiforce.com'
description: 'Demo server of the latest stable version'
paths:
/webservice/SMS/SMSAPI/Reception:
get:
tags:
- SMSAPI
summary: 'Receipt of SMS'
description: 'Add record.'
externalDocs:
description: 'SMSApi Documentation'
url: 'https://www.smsapi.pl/docs'
operationId: 1d5b693764111be12b9441546ea6e2cb
responses:
'200':
description: Result
content:
application/json:
schema:
$ref: '#/components/schemas/SMS_SMSAPI_Post_Reception'
'401':
description: '`No sent token` OR `Invalid token` OR `wrong data provided in the request`'
'403':
description: 'No permissions for module'
'405':
description: 'Method Not Allowed'
security:
-
ApiKeyAuth: []
token: []
/webservice/SMS/SMSAPI/Report:
get:
tags:
- SMSAPI
summary: 'Report for sms'
description: 'Update record status.'
externalDocs:
description: 'SMSApi Documentation'
url: 'https://www.smsapi.pl/docs'
operationId: 82162b057882b4798a1d4844f9e0161f
responses:
'200':
description: Result
content:
application/json:
schema:
$ref: '#/components/schemas/SMS_SMSAPI_Get_Report'
'401':
description: '`No sent token` OR `Invalid token` OR `wrong data provided in the request`'
'403':
description: 'No permissions for module'
'405':
description: 'Method Not Allowed'
security:
-
ApiKeyAuth: []
token: []
post:
tags:
- SMSAPI
summary: 'Report for sms'
description: 'Update record status.'
externalDocs:
description: 'SMSApi Documentation'
url: 'https://www.smsapi.pl/docs'
operationId: 2d104552585271b46f199a9df6b49930
responses:
'200':
description: Result
content:
application/json:
schema:
$ref: '#/components/schemas/SMS_SMSAPI_Post_Report'
'401':
description: '`No sent token` OR `Invalid token` OR `wrong data provided in the request`'
'403':
description: 'No permissions for module'
'405':
description: 'Method Not Allowed'
security:
-
ApiKeyAuth: []
token: []
components:
schemas:
SMS_SMSAPI_Post_Reception:
title: Response
description: Response
type: string
example: OK
SMS_SMSAPI_Get_Report:
title: Response
description: Response
type: string
example: OK
SMS_SMSAPI_Post_Report:
title: Response
description: Response
type: string
example: OK
securitySchemes:
ApiKeyAuth:
type: apiKey
description: 'Webservice api key header'
name: X-API-KEY
in: header
token:
type: apiKey
description: 'Webservice api token by user header'
name: X-TOKEN
in: header
Loading

0 comments on commit 3450240

Please sign in to comment.