|
| 1 | +import typing |
| 2 | +from typing import Set |
| 3 | + |
| 4 | +if typing.TYPE_CHECKING: |
| 5 | + from .typing import AnyEntityDict |
| 6 | + |
| 7 | + |
1 | 8 | class _BaseServerAPI: |
| 9 | + def get(self, entrypoint: str, **kwargs): |
| 10 | + raise NotImplementedError() |
| 11 | + |
| 12 | + def post(self, entrypoint: str, **kwargs): |
| 13 | + raise NotImplementedError() |
| 14 | + |
| 15 | + def put(self, entrypoint: str, **kwargs): |
| 16 | + raise NotImplementedError() |
| 17 | + |
| 18 | + def patch(self, entrypoint: str, **kwargs): |
| 19 | + raise NotImplementedError() |
| 20 | + |
| 21 | + def delete(self, entrypoint: str, **kwargs): |
| 22 | + raise NotImplementedError() |
| 23 | + |
| 24 | + def raw_get(self, entrypoint: str, **kwargs): |
| 25 | + raise NotImplementedError() |
| 26 | + |
| 27 | + def raw_post(self, entrypoint: str, **kwargs): |
| 28 | + raise NotImplementedError() |
| 29 | + |
| 30 | + def raw_put(self, entrypoint: str, **kwargs): |
| 31 | + raise NotImplementedError() |
| 32 | + |
| 33 | + def raw_patch(self, entrypoint: str, **kwargs): |
| 34 | + raise NotImplementedError() |
| 35 | + |
| 36 | + def raw_delete(self, entrypoint: str, **kwargs): |
| 37 | + raise NotImplementedError() |
| 38 | + |
2 | 39 | def get_default_settings_variant(self) -> str: |
3 | 40 | raise NotImplementedError() |
4 | 41 |
|
5 | | - def get(self, entrypoint: str, **kwargs): |
6 | | - pass |
| 42 | + def get_default_fields_for_type(self, entity_type: str) -> Set[str]: |
| 43 | + raise NotImplementedError() |
7 | 44 |
|
8 | | - def post(self, entrypoint: str, **kwargs): |
9 | | - pass |
| 45 | + def _convert_entity_data(self, entity: "AnyEntityDict"): |
| 46 | + raise NotImplementedError() |
0 commit comments