Skip to content

agentcode-dev/server-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AgentCode — Rails

Automatic REST API generation for Rails models with built-in security, validation, and advanced querying.

Ruby Rails License: MIT

Register a model, get a full REST API instantly.

Features

# Feature Description
1 Automatic CRUD Endpoints Generates index, show, create, update, destroy for every registered model.
2 Authentication Login, logout, password recovery/reset, invitation-based registration.
3 Authorization & Policies Pundit-based permission checks ({slug}.{action}), wildcard support.
4 Role-Based Access Control Per-org roles via user_roles join table.
5 Attribute-Level Permissions Control which fields each role can read and write.
6 Validation Dual-layer: format rules + field presence. Supports role-keyed rules.
7 Cross-Tenant FK Validation exists: rules auto-scoped to current org, even through indirect FK relationships.
8 Filtering ?filter[field]=value with AND/OR logic.
9 Sorting ?sort=-created_at,title — ascending and descending.
10 Full-Text Search ?search=term across configured fields, supports relationship dot notation.
11 Pagination Header-based metadata (X-Current-Page, X-Last-Page, X-Per-Page, X-Total).
12 Field Selection ?fields[posts]=id,title,status to reduce payload.
13 Eager Loading ?include=user,comments with nested, Count/Exists suffixes, and auth per include.
14 Multi-Tenancy Organization-based data isolation, auto-set organization_id, global scope.
15 Nested Ownership Auto-detects org by walking belongs_to chains.
16 Route Groups Multiple URL prefixes with different middleware/auth (tenant, public, custom).
17 Soft Deletes Discard gem — trash, restore, force-delete endpoints with individual permissions.
18 Audit Trail Logs all CRUD events with old/new values, user, IP, and org context.
19 Nested Operations POST /nested for atomic multi-model transactions with $N.field references.
20 Invitations Token-based invite system with create, resend, cancel, accept, and role assignment.
21 Hidden Columns Base + model-level + policy-level dynamic column hiding per role.
22 Auto-Scope Discovery Auto-registers scopes by naming convention.
23 UUID Primary Keys HasUuid concern for auto-generated UUIDs.
24 Middleware Support Global per model + per action middleware.
25 Action Exclusion except_actions to disable specific CRUD routes.
26 Generator CLI agentcode:install, agentcode:generate, agentcode:blueprint, agentcode:export_postman.
27 Postman Export Auto-generated Postman Collection v2.1 with all endpoints.
28 Blueprint System YAML-to-code generation for models, migrations, factories, policies, tests, and seeders.

Quick Start

bundle add agentcode
rails agentcode:install

Documentation

For full documentation, guides, and API reference visit:

https://startsoft-dev.github.io/agentcode-docs/docs/getting-started

License

MIT — see LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors