changed id to file_id in multiple instances, which caused the calls to not work

This commit is contained in:
Kikimanox
2022-06-29 14:50:28 +02:00
parent 9ccc924a48
commit 34039e38dd
4 changed files with 18 additions and 18 deletions
+9 -9
View File
@@ -5,13 +5,13 @@ from swagger_server.models.terminoloski_kandidat import TerminoloskiKandidat #
from swagger_server import util
def get_conllu(id): # noqa: E501
def get_conllu(file_id): # noqa: E501
"""Vrne CoNNL-U po id-ju datoteke
# noqa: E501
:param id:
:type id: int
:param file_id:
:type file_id: int
:rtype: str
"""
@@ -56,13 +56,13 @@ def get_extracted_words(leta, vrste, kljucnebesede, cerifpodrocja): # noqa: E50
return 'do some magic!'
def get_file(id): # noqa: E501
def get_file(file_id): # noqa: E501
"""Vrne binarni zapis v originalnem formatu po id-ju datoteke
# noqa: E501
:param id:
:type id: int
:param file_id:
:type file_id: int
:rtype: List[bytearray]
"""
@@ -126,13 +126,13 @@ def get_texts(leta, vrste, kljucnebesede, cerifpodrocja): # noqa: E501
return 'do some magic!'
def oss_besedilo_po_id_get(id): # noqa: E501
def oss_besedilo_po_id_get(file_id): # noqa: E501
"""Vrne besedilo po id-ju datoteke
# noqa: E501
:param id:
:type id: int
:param file_id:
:type file_id: int
:rtype: str
"""
+3 -3
View File
@@ -270,7 +270,7 @@ paths:
summary: Vrne binarni zapis v originalnem formatu po id-ju datoteke
operationId: get_file
parameters:
- name: id
- name: file_id
in: query
required: true
style: form
@@ -353,7 +353,7 @@ paths:
summary: Vrne CoNNL-U po id-ju datoteke
operationId: get_conllu
parameters:
- name: id
- name: file_id
in: query
required: true
style: form
@@ -377,7 +377,7 @@ paths:
summary: Vrne besedilo po id-ju datoteke
operationId: oss_besedilo_po_id_get
parameters:
- name: id
- name: file_id
in: query
required: true
style: form
+3 -3
View File
@@ -17,7 +17,7 @@ class TestOssController(BaseTestCase):
Vrne CoNNL-U po id-ju datoteke
"""
query_string = [('id', 789)]
query_string = [('file_id', 789)]
response = self.client.open(
'/oss/conlluPoId',
method='GET',
@@ -62,7 +62,7 @@ class TestOssController(BaseTestCase):
Vrne binarni zapis v originalnem formatu po id-ju datoteke
"""
query_string = [('id', 789)]
query_string = [('file_id', 789)]
response = self.client.open(
'/oss/datotekaPoId',
method='GET',
@@ -123,7 +123,7 @@ class TestOssController(BaseTestCase):
Vrne besedilo po id-ju datoteke
"""
query_string = [('id', 789)]
query_string = [('file_id', 789)]
response = self.client.open(
'/oss/besediloPoId',
method='GET',