manifest / integrations / wp-api-codeia
WP API Codeia
Transforma WordPress en una API REST configurable y personalizable con autenticación JWT, endpoints dinámicos, permisos granulares y documentación OpenAPI automática.
by WP API Codeia Team · github.com/sandrargdev/wp-api-codeia · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sandrargdev/wp-api-codeia/archive/refs/heads/main.zipA professional WordPress plugin that transforms WordPress into a configurable REST API.
Version
1.0.0
Description
WP API Codeia provides a complete REST API solution for WordPress with:
- Dynamic endpoints for all post types and taxonomies
- JWT, API Key, and App Password authentication
- Role-based permissions system
- Automatic OpenAPI 3.0 documentation
- Full admin dashboard
Features
Authentication
- JWT: RS256 algorithm with access/refresh tokens
- API Keys: Format
wack_{site_id}_{user_id}_{random}_{checksum} - App Passwords: Compatible with WordPress native and custom implementation
API Endpoints
- Dynamic CRUD endpoints for all post types
- Dynamic CRUD endpoints for all taxonomies
- Media upload and management
- Schema discovery endpoints
- OpenAPI documentation endpoints
Permissions
- Role-based permission matrix
- Field-level access control
- Rate limiting per role
- Ownership-based access
Documentation
- Automatic OpenAPI 3.0 specification
- Swagger UI interface
- ReDoc interface
- Embed with shortcodes
Admin Dashboard
- 8 admin pages with full management
- API statistics and monitoring
- Token and API key management
- Permission configuration
- Request logs
Requirements
- PHP 7.4 or higher
- WordPress 5.6 or higher
- MySQL 5.6 or higher
Installation
- Upload the plugin files to the
/wp-content/plugins/wp-api-codeia/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
- Configure the API through the 'API Codeia' menu.
API Endpoints
Authentication
POST /wp-custom-api/v1/auth/login- User loginPOST /wp-custom-api/v1/auth/refresh- Refresh tokenPOST /wp-custom-api/v1/auth/logout- LogoutGET /wp-custom-api/v1/auth/verify- Verify authentication
Dynamic Post Type Endpoints
GET /wp-custom-api/v1/{post_type}- List itemsPOST /wp-custom-api/v1/{post_type}- Create itemGET /wp-custom-api/v1/{post_type}/{id}- Get itemPUT /wp-custom-api/v1/{post_type}/{id}- Update itemDELETE /wp-custom-api/v1/{post_type}/{id}- Delete itemGET /wp-custom-api/v1/{post_type}/{id}/meta- Get meta fieldsPOST /wp-custom-api/v1/{post_type}/{id}/meta- Update meta fieldsGET /wp-custom-api/v1/{post_type}/{id}/terms/{taxonomy}- Get termsPOST /wp-custom-api/v1/{post_type}/{id}/terms/{taxonomy}- Set terms
Taxonomy Endpoints
GET /wp-custom-api/v1/{taxonomy}- List termsPOST /wp-custom-api/v1/{taxonomy}- Create termGET /wp-custom-api/v1/{taxonomy}/{id}- Get termPUT /wp-custom-api/v1/{taxonomy}/{id}- Update termDELETE /wp-custom-api/v1/{taxonomy}/{id}- Delete term
Media
POST /wp-custom-api/v1/media- Upload fileGET /wp-custom-api/v1/media/{id}- Get media item
Documentation
GET /wp-custom-api/v1/docs- OpenAPI JSON specGET /wp-custom-api/v1/docs/swagger- Swagger UIGET /wp-custom-api/v1/docs/redoc- ReDocGET /wp-custom-api/v1/schema- API schemaGET /wp-custom-api/v1/info- API information
Authentication
JWT
curl -X POST https://example.com/wp-json/wp-custom-api/v1/auth/login \\
-H "Content-Type: application/json" \\
-d '{"username":"admin","password":"password","strategy":"jwt"}'
API Key
curl -X GET https://example.com/wp-json/wp-custom-api/v1/posts \\
-H "X-API-Key: wack_1_1_xxx_checksum"
App Password
curl -X GET https://example.com/wp-json/wp-custom-api/v1/posts \\
-u "username:application_password"
Response Format
Success Response
{
"success": true,
"data": { /* resource data */ },
"meta": {
"timestamp": "2026-02-24T10:30:00Z",
"request_id": "req_abc123xyz",
"version": "v1"
}
}
Error Response
{
"success": false,
"error": {
"code": "codeia_auth_invalid",
"message": "Invalid authentication credentials"
}
}
Development
Running Tests
composer install
vendor/bin/phpunit
Code Structure
src/Core/- Core infrastructuresrc/Auth/- Authentication modulesrc/API/- API layer and controllerssrc/Schema/- Schema detectionsrc/Permissions/- Permissions systemsrc/Upload/- File upload handlingsrc/Documentation/- OpenAPI generatorsrc/Admin/- Admin dashboardsrc/Utils/- Utility classestemplates/- Template files
Changelog
See CHANGELOG.md for version history.
License
GPL v2 or later.
Credits
Developed with Claude Code (Anthropic)
Support
For support and documentation, see docs/ARCHITECTURE.md