Metadata-Version: 2.4
Name: fc-django-post-api
Version: 2026.6.5
Summary: Django REST API package extracted from fc_django_crazypowertools
Author: DBox AI
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Django<4.0,>=3.2
Requires-Dist: djangorestframework<3.15,>=3.13
Requires-Dist: djangorestframework-simplejwt<6.0,>=4.8
Requires-Dist: django-filter<23.0,>=21.0
Requires-Dist: djoser>=2.0
Requires-Dist: django-solo<2.4,>=2.2
Requires-Dist: django-hitcount<2.0,>=1.3.5
Requires-Dist: django-tbase-post-product<2027.0.0,>=2026.3.1617736733
Dynamic: license-file

# fc-django-post-api

[![PyPI version](https://badge.fury.io/py/fc-django-post-api.svg)](https://pypi.org/project/fc-django-post-api/)

Django REST API package extracted from [fc_django_crazypowertools](https://github.com/napoler/fc_django_crazypowertools).

> **Status:** experimental — first PyPI release (2026.6.0).

## Install

```bash
pip install fc-django-post-api
```

## Configure

Add to `INSTALLED_APPS` in your Django settings:

```python
INSTALLED_APPS = [
    ...,
    "fc_django_post_api",
]
```

The `AppConfig` declares `label = "api"`, so the Django app label remains `api` even though the Python import is `fc_django_post_api`. Database tables, migrations, and `reverse()` lookups are unaffected.

## Mount URLs

```python
# urls.py
urlpatterns = [
    path("api/", include("fc_django_post_api.urls")),
    ...,
]
```

## Endpoints

- `GET /api/posts/` — PostViewSet (DRF)
- `GET /api/health/` — HealthView
- `GET /api/me/` — MeView
- `POST /api/auth/token/` — JWT obtain
- `POST /api/auth/token/refresh/` — JWT refresh

## License

MIT — see `LICENSE`.
