Main/WordPress Fullstack/Blueprints/Security & API/Custom REST API Endpoint for Mobile & Third-Party Apps
Back to «Security & API» cardsТрудозатраты~8 рабочих часов
Фриланс вилка~$360 – $600 (€320 – €560)
Оценка веб-студии~$760 – $1,280 (€720 – €1200)
ТЗ заказчика (исходный бриф):
“The endpoint must respond in under 200 ms, provide strict validation, and strictly prevent unauthorized profile access.”
Ключевые требования:
- •Register custom namespace and route via register_rest_route()
- •Strict validation of incoming request schemas using args property
- •Token verification in permission_callback via JWT / Application Passwords
- •Safe serialization and sanitization of user meta with esc_html()
- •Consistent HTTP error responses (400, 401, 403, 500) matching REST standards
Ограничения проекта:
- •Response time under 200 ms with Redis Object Cache enabled
- •Zero exposure of sensitive fields (user_pass, user_activation_key)
Критерии приёмки (KPI):
- 100% compliance with WordPress REST API standards
- 0 authentication bypass vulnerabilities in security audits
Пошаговое практическое руководство по ТЗ
Подробный разбор архитектуры, код реализации и советы эксперта по каждому этапу: