- Popravljena swagger definicija in json (/oznaciBesedilo ni delal)

- Dodani resourci za classlo
- Priprava util-ov za podatkovno bazo (se v zelo surovem stanju)
- Dodan docker-compose, ki bo potreben za nadaljni development
- Popravilejni controllerji
This commit is contained in:
Kristjan Žagar
2022-07-08 15:54:52 +02:00
parent aa2946ee4a
commit c8e4f7da17
10 changed files with 472 additions and 254 deletions
+1
View File
@@ -6,4 +6,5 @@ from __future__ import absolute_import
from swagger_server.models.datoteka_v_besedilo_body import DatotekaVBesediloBody
from swagger_server.models.datoteka_v_besedilo_ocr_body import DatotekaVBesediloOcrBody
from swagger_server.models.izlusci_body import IzlusciBody
from swagger_server.models.oznaci_besedilo_body import OznaciBesediloBody
from swagger_server.models.terminoloski_kandidat import TerminoloskiKandidat
@@ -0,0 +1,62 @@
# coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class OznaciBesediloBody(Model):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(self, besedilo: str=None): # noqa: E501
"""OznaciBesediloBody - a model defined in Swagger
:param besedilo: The besedilo of this OznaciBesediloBody. # noqa: E501
:type besedilo: str
"""
self.swagger_types = {
'besedilo': str
}
self.attribute_map = {
'besedilo': 'besedilo'
}
self._besedilo = besedilo
@classmethod
def from_dict(cls, dikt) -> 'OznaciBesediloBody':
"""Returns the dict as a model
:param dikt: A dict.
:type: dict
:return: The oznaciBesedilo_body of this OznaciBesediloBody. # noqa: E501
:rtype: OznaciBesediloBody
"""
return util.deserialize_model(dikt, cls)
@property
def besedilo(self) -> str:
"""Gets the besedilo of this OznaciBesediloBody.
:return: The besedilo of this OznaciBesediloBody.
:rtype: str
"""
return self._besedilo
@besedilo.setter
def besedilo(self, besedilo: str):
"""Sets the besedilo of this OznaciBesediloBody.
:param besedilo: The besedilo of this OznaciBesediloBody.
:type besedilo: str
"""
self._besedilo = besedilo