Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 2803b04

Browse files
authored
Merge pull request #193 from Silence0ne/main
New update
2 parents 6decbdf + a872743 commit 2803b04

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed

open-api.json

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
"name": "translation",
4848
"description": "Manage translation"
4949
},
50+
{
51+
"name": "phrase",
52+
"description": "Manage phrase"
53+
},
5054
{
5155
"name": "report",
5256
"description": "Technical reports"
@@ -1923,9 +1927,110 @@
19231927
}
19241928
}
19251929
},
1930+
"/phrase": {
1931+
"get": {
1932+
"description": "View list of phrases",
1933+
"security": [
1934+
{
1935+
"ApiKeyAuth": []
1936+
}
1937+
],
1938+
"tags": ["phrase"],
1939+
"responses": {
1940+
"200": {
1941+
"description": "return the list of all phrase"
1942+
}
1943+
}
1944+
},
1945+
"post": {
1946+
"description": "Add new phrase",
1947+
"security": [
1948+
{
1949+
"ApiKeyAuth": []
1950+
}
1951+
],
1952+
"tags": ["phrase"],
1953+
"requestBody": {
1954+
"content": {
1955+
"application/json": {
1956+
"schema": {
1957+
"type": "object",
1958+
"properties": {
1959+
"phrase": {
1960+
"type": "string",
1961+
"description": "The Quran phrase",
1962+
"example": "كتب"
1963+
}
1964+
}
1965+
}
1966+
}
1967+
}
1968+
},
1969+
"responses": {
1970+
"200": {
1971+
"description": "Your phrase added"
1972+
}
1973+
}
1974+
}
1975+
},
1976+
"/phrase/{language}": {
1977+
"get": {
1978+
"description": "Edit phrase eith id you specified",
1979+
"security": [
1980+
{
1981+
"ApiKeyAuth": []
1982+
}
1983+
],
1984+
"parameters": [
1985+
{
1986+
"in": "path",
1987+
"required": true,
1988+
"name": "phrase_lang",
1989+
"schema": {
1990+
"type": "string"
1991+
}
1992+
}
1993+
],
1994+
"tags": ["phrase"],
1995+
"responses": {
1996+
"200": {
1997+
"description": "Return the phrase with id you specified"
1998+
}
1999+
},
2000+
"post": {
2001+
"description": "Edit phrase whit id you specified",
2002+
"security": [
2003+
{
2004+
"ApiKeyAuth": []
2005+
}
2006+
],
2007+
"parameters": [
2008+
{
2009+
"in": "path",
2010+
"required": true,
2011+
"name": "phrase_lang",
2012+
"schema": {
2013+
"type": "string"
2014+
}
2015+
}
2016+
],
2017+
"tags": ["phrase"],
2018+
"responses": {
2019+
"200": {
2020+
"description": "phrase whit id you specified edited/added"
2021+
}
2022+
}
2023+
}
2024+
}
2025+
},
19262026
"/error": {
19272027
"get": {
19282028
"description": "View List of errors",
2029+
"security": [
2030+
{
2031+
"ApiKeyAuth": []
2032+
}
2033+
],
19292034
"parameters": [
19302035
{
19312036
"in": "query",

0 commit comments

Comments
 (0)