dataclass-rest icon indicating copy to clipboard operation
dataclass-rest copied to clipboard

A modern and simple way to create clients for REST like APIs

Results 10 dataclass-rest issues
Sort by recently updated
recently updated
newest added

It's ok not to define separate class for POST body, but to use it's arguments

enhancement

its now working like ```python from dataclasses import dataclass from typing import Optional from requests import Session from dataclass_rest import get from dataclass_rest.http.requests import RequestsClient @dataclass class Todo: id: int...

Sometimes URL is constructed in more complicated way than just string interpolation. We can support it by allowing user to pass function as URL generator. E.g ```py def url_generator(xxx: str):...

add decorator like ```@on(404, Model)``` So ApiError[Model] will be raised

If we have parsing error we need to understand what was the origin: our models or other issues.

1. Per method or global one 2. Sync and async 3. Different strategies (raise or wait) 4. Max RPS/RPM or max wait timeout

For compatibility we can add come unused paramtetrs. Decorator must hav option to ignore some

where body should be awaited?

enhancement