django-ninja

Create RESTful APIs with Django Ninja using Pydantic schemas and service layers.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/felipe3dfx/dotfiles --skill django-ninja
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: django-ninja
Source: https://github.com/felipe3dfx/dotfiles/tree/main/skills/django-ninja
Command: npx skills add https://github.com/felipe3dfx/dotfiles --skill django-ninja

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the development of RESTful APIs using Django Ninja, addressing common challenges in API design, data validation, and service layer integration.

Core Features & Use Cases

  • API Endpoint Creation: Define routers, schemas, and CRUD operations efficiently.
  • Data Validation: Implement robust request/response validation using Pydantic schemas.
  • Service Layer Integration: Enforce a clear separation of concerns with thin endpoints and fat services.
  • Use Case: When building a new feature that requires a public-facing API for managing user profiles, use this Skill to quickly set up the necessary endpoints, schemas, and service logic.

Quick Start

Use the django-ninja skill to create a new API endpoint for listing entities.

Frequently Asked Questions about django-ninja

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a REST API in Django with Pydantic validation?

To build a Django REST API with Pydantic validation, define request and response schemas using Pydantic, then create thin endpoints that delegate business logic to a dedicated service layer for clean architecture and CRUD operations.

What is the best way to structure Django Ninja endpoints for clean architecture?

The best way to structure Django Ninja endpoints for clean architecture is to keep endpoints thin by delegating business logic to dedicated service layers, ensuring a clear separation of concerns between routing and data processing.

How do I implement CRUD operations and pagination in a Django Ninja API?

Implement CRUD operations and pagination in a Django Ninja API by defining Pydantic schemas for data validation, configuring routers for each operation, and applying built-in pagination parameters to manage query results efficiently.

Can I use Django Ninja for API authentication and filtering?

Yes, you can use Django Ninja for API authentication and filtering, as it supports implementing various authentication strategies and query filtering mechanisms directly within your endpoint definitions.

Does Django Ninja enforce a service layer separation for RESTful APIs?

Yes, Django Ninja facilitates a service layer separation for RESTful APIs by encouraging thin endpoints that route requests to fat services, enforcing a clear separation of concerns between API routing and business logic.