apidaora icon indicating copy to clipboard operation
apidaora copied to clipboard

HTTP/REST API using dataclasses and TypedDict annotation for python

Results 15 apidaora issues
Sort by recently updated
recently updated
newest added

**e.g.** ``` @route.get('/blank') def blank(): return f'blank' @route.get('/args/{name}/{age}') def args(name: str, age: int): return f'args {name} {age}' @route.get('/vars') def vars(name: str, age: int): return f'vars {name} {age}' app = appdaora([blank,...

I had a quick look at the code and it seems apidaora does not offer any mean of prevent a task with the same parameters to be queued up twice....

The cython version must follow the same interface of the python version.

The index.md is copied to README.md when the docs are build

hacktoberfest

Example: ```python from apidaora import appdaora def operation() -> str: return 'Hello' app = appdaora([operation], validate_response=True) ``` Should raises a invalid response exception

hacktoberfest

Uses an openapi file to create the asgi app, looking like this: ```python from apidaora import appdaora_spec async def my_operation(user_name): return 'Hello World!' app = appdaora_spec('myapi.yaml', {'my_operation': my_operation}, modulefile=__file__) ```...

hacktoberfest

Example: ```python from http import HTTPStatus from apidaora import appdaora, MethodType, path @path('hello', MethodType.GET) def operation(name: str) -> str: return f'Hello {name}!' @path('hello/{name}', MethodType.POST) def created_operation(name: str) -> Tuple[HTTPStatus, str]:...

hacktoberfest

Should raises error if any argument or return variables was declared with a not supported type. Must be implemented on @path registration flow.

hacktoberfest