{"success":true,"status":200,"message":"NDC Backend API - Available Endpoints","data":{"api_version":"v1.0","environment":"Production","endpoints":{"authentication":[{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/auth/register","description":"Register a new user"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/auth/login","description":"Login and receive JWT tokens"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/auth/refresh-token","description":"Refresh access token"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/auth/logout","description":"Logout (blacklist tokens)"},{"method":"POST/GET","url":"https://backend.ayawasocentralndc.org/api/auth/verify-email","description":"Verify email with token"}],"users":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/users/profile","description":"Get current user profile"},{"method":"PUT","url":"https://backend.ayawasocentralndc.org/api/users/profile","description":"Update current user profile"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/users/change-password","description":"Change password"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/users/{id}","description":"Get user by ID"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/admin/users","description":"List all users (admin only)"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/admin/users/create","description":"Create user directly (admin only)"}],"constituencies":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/constituencies","description":"List all constituencies"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/constituencies","description":"Create a constituency"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}","description":"Get constituency details"},{"method":"PUT","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}","description":"Update constituency"},{"method":"DELETE","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}","description":"Delete constituency"}],"wards":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}/wards","description":"List wards in constituency"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}/wards","description":"Create ward"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}/wards/{ward_id}","description":"Get ward details"},{"method":"PUT","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}/wards/{ward_id}","description":"Update ward"},{"method":"DELETE","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}/wards/{ward_id}","description":"Delete ward"}],"branches":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}/wards/{ward_id}/branches","description":"List branches"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}/wards/{ward_id}/branches","description":"Create branch"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}/wards/{ward_id}/branches/{branch_id}","description":"Get branch"},{"method":"PUT","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}/wards/{ward_id}/branches/{branch_id}","description":"Update branch"},{"method":"DELETE","url":"https://backend.ayawasocentralndc.org/api/constituencies/{id}/wards/{ward_id}/branches/{branch_id}","description":"Delete branch"}],"executives":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/executives","description":"List all executives"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/executives","description":"Create executive"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/executives/{id}","description":"Get executive details"},{"method":"PUT","url":"https://backend.ayawasocentralndc.org/api/executives/{id}","description":"Update executive"},{"method":"DELETE","url":"https://backend.ayawasocentralndc.org/api/executives/{id}","description":"Delete executive"}],"invitations":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/invitations","description":"List invitations (admin)"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/invitations/create","description":"Create invitation (admin)"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/invitations/{id}","description":"Get invitation details"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/invitations/{id}/revoke","description":"Revoke invitation"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/invitations/{id}/resend","description":"Resend invitation"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/invitations/validate","description":"Validate invitation token"}],"gallery":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/gallery/assets","description":"List gallery assets"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/gallery/assets","description":"Upload gallery asset"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/gallery/assets/{id}","description":"Get asset details"},{"method":"PUT","url":"https://backend.ayawasocentralndc.org/api/gallery/assets/{id}","description":"Update asset"},{"method":"DELETE","url":"https://backend.ayawasocentralndc.org/api/gallery/assets/{id}","description":"Delete asset"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/gallery/assets/{id}/publish","description":"Publish asset"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/gallery/assets/{id}/archive","description":"Archive asset"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/gallery/assets/{id}/audit","description":"Get audit log"}],"projects":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/projects","description":"List all projects"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/projects","description":"Create project"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/projects/{id}","description":"Get project details"},{"method":"PUT","url":"https://backend.ayawasocentralndc.org/api/projects/{id}","description":"Update project"},{"method":"DELETE","url":"https://backend.ayawasocentralndc.org/api/projects/{id}","description":"Delete project"}],"news":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/news","description":"List all news articles"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/news","description":"Create news article"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/news/{id}","description":"Get news details"},{"method":"PUT","url":"https://backend.ayawasocentralndc.org/api/news/{id}","description":"Update news article"},{"method":"DELETE","url":"https://backend.ayawasocentralndc.org/api/news/{id}","description":"Delete news article"}],"about":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/about","description":"List all about sections"},{"method":"POST","url":"https://backend.ayawasocentralndc.org/api/about/sections","description":"Bulk create/update about sections"},{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/about/{section_type}","description":"Get specific about section"},{"method":"PUT","url":"https://backend.ayawasocentralndc.org/api/about/{section_type}","description":"Update about section"}],"roles":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/roles","description":"List all available roles"}],"health":[{"method":"GET","url":"https://backend.ayawasocentralndc.org/api/health","description":"Health check endpoint"}]},"documentation":"See README.md for detailed API documentation"}}