Skip to content

Commit

Permalink
Merge pull request #193 from Silence0ne/main
Browse files Browse the repository at this point in the history
New update
  • Loading branch information
al-abd authored Nov 14, 2024
2 parents 6decbdf + a872743 commit 2803b04
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions open-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
"name": "translation",
"description": "Manage translation"
},
{
"name": "phrase",
"description": "Manage phrase"
},
{
"name": "report",
"description": "Technical reports"
Expand Down Expand Up @@ -1923,9 +1927,110 @@
}
}
},
"/phrase": {
"get": {
"description": "View list of phrases",
"security": [
{
"ApiKeyAuth": []
}
],
"tags": ["phrase"],
"responses": {
"200": {
"description": "return the list of all phrase"
}
}
},
"post": {
"description": "Add new phrase",
"security": [
{
"ApiKeyAuth": []
}
],
"tags": ["phrase"],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"phrase": {
"type": "string",
"description": "The Quran phrase",
"example": "كتب"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Your phrase added"
}
}
}
},
"/phrase/{language}": {
"get": {
"description": "Edit phrase eith id you specified",
"security": [
{
"ApiKeyAuth": []
}
],
"parameters": [
{
"in": "path",
"required": true,
"name": "phrase_lang",
"schema": {
"type": "string"
}
}
],
"tags": ["phrase"],
"responses": {
"200": {
"description": "Return the phrase with id you specified"
}
},
"post": {
"description": "Edit phrase whit id you specified",
"security": [
{
"ApiKeyAuth": []
}
],
"parameters": [
{
"in": "path",
"required": true,
"name": "phrase_lang",
"schema": {
"type": "string"
}
}
],
"tags": ["phrase"],
"responses": {
"200": {
"description": "phrase whit id you specified edited/added"
}
}
}
}
},
"/error": {
"get": {
"description": "View List of errors",
"security": [
{
"ApiKeyAuth": []
}
],
"parameters": [
{
"in": "query",
Expand Down

0 comments on commit 2803b04

Please sign in to comment.