{"openapi":"3.1.0","info":{"title":"Agency Portfolio Management System API","description":"REST API for the Agency Portfolio Management System.\n\nServes two clients:\n- **Public endpoints** (`/projects`, `/case-studies`, `/team`, `/testimonials`) — consumed by the\n  React frontend. No authentication required. Returns **published** content only.\n- **Admin endpoints** (`/admin/*`) — consumed by the Laravel Admin Dashboard. Requires\n  authentication. Full CRUD, returns content in any status (draft or published).\n\nReference documents: PRD v1.0 · SRS v1.0 · API Specification v1.0\n","version":"1.0.0","contact":{"name":"Agency Portfolio Management System — Project Owner","email":"you@agency.com"}},"servers":[{"url":"https://api.yourdomain.com/api/v1","description":"Production"},{"url":"http://localhost:8000/api/v1","description":"Local development"}],"tags":[{"name":"Auth","description":"Admin authentication"},{"name":"Projects (Public)","description":"Read-only endpoints consumed by the public frontend"},{"name":"Case Studies (Public)","description":"Read-only endpoints consumed by the public frontend"},{"name":"Team (Public)","description":"Read-only endpoints consumed by the public frontend"},{"name":"Testimonials (Public)","description":"Read-only endpoints consumed by the public frontend"},{"name":"Projects (Admin)","description":"Authenticated CRUD for Projects"},{"name":"Case Studies (Admin)","description":"Authenticated CRUD for Case Studies"},{"name":"Team (Admin)","description":"Authenticated CRUD for Team Members"},{"name":"Testimonials (Admin)","description":"Authenticated CRUD for Testimonials"}],"security":[],"paths":{"/admin/auth/login":{"post":{"tags":["Auth"],"summary":"Admin login","description":"Authenticates an admin user and returns a bearer token.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","password"],"properties":{"email":{"type":"string","format":"email","example":"alex@agency.com"},"password":{"type":"string","format":"password","example":"••••••••"}}}}}},"responses":{"200":{"description":"Login successful","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"token":{"type":"string","example":"1|aBcDeFgHiJkLmNoPqRsTuVwXyZ..."},"user":{"$ref":"#/components/schemas/AdminUser"}}}}}}}},"401":{"$ref":"#/components/responses/InvalidCredentials"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/admin/auth/logout":{"post":{"tags":["Auth"],"summary":"Admin logout","description":"Invalidates the current bearer token / session.","security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Logged out successfully"},"401":{"$ref":"#/components/responses/Unauthenticated"}}}},"/projects":{"get":{"tags":["Projects (Public)"],"summary":"List published projects","description":"Returns all published projects, ordered by `sort_order` ascending.","security":[],"parameters":[{"name":"category","in":"query","description":"Filter by category slug (optional; primary filtering is intended client-side)","schema":{"type":"string"}},{"name":"per_page","in":"query","schema":{"type":"integer","default":50,"maximum":100}},{"name":"page","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"A paginated list of published projects","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}}}}},"/projects/{slug}":{"get":{"tags":["Projects (Public)"],"summary":"Get a single published project","security":[],"parameters":[{"$ref":"#/components/parameters/SlugPathParam"}],"responses":{"200":{"description":"Project detail","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProjectDetail"}}}}}},"404":{"$ref":"#/components/responses/NotFound"}}}},"/case-studies/{slug}":{"get":{"tags":["Case Studies (Public)"],"summary":"Get a single published case study","description":"Includes full SEO fields for dynamic `<head>` injection on the frontend.","security":[],"parameters":[{"$ref":"#/components/parameters/SlugPathParam"}],"responses":{"200":{"description":"Case study detail","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CaseStudyDetail"}}}}}},"404":{"$ref":"#/components/responses/NotFound"}}}},"/team":{"get":{"tags":["Team (Public)"],"summary":"List active team members","security":[],"parameters":[{"name":"per_page","in":"query","schema":{"type":"integer","default":50}},{"name":"page","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"A list of active team members, ordered by sort_order","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TeamMember"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}}}}},"/testimonials":{"get":{"tags":["Testimonials (Public)"],"summary":"List published testimonials","security":[],"parameters":[{"name":"project_id","in":"query","description":"Filter testimonials linked to a specific project","schema":{"type":"integer"}},{"name":"per_page","in":"query","schema":{"type":"integer","default":50}},{"name":"page","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"A list of published testimonials","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Testimonial"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}}}}},"/admin/projects":{"get":{"tags":["Projects (Admin)"],"summary":"List all projects (any status)","security":[{"bearerAuth":[]}],"parameters":[{"name":"status","in":"query","schema":{"type":"string","enum":["draft","published"]}}],"responses":{"200":{"description":"A list of all projects regardless of status","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"}}},"post":{"tags":["Projects (Admin)"],"summary":"Create a project","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ProjectCreateRequest"}}}},"responses":{"201":{"description":"Project created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Project"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"409":{"$ref":"#/components/responses/DuplicateSlug"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/admin/projects/{id}":{"get":{"tags":["Projects (Admin)"],"summary":"Get a single project (any status)","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"responses":{"200":{"description":"Project detail","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProjectDetail"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"}}},"patch":{"tags":["Projects (Admin)"],"summary":"Update a project","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ProjectUpdateRequest"}}}},"responses":{"200":{"description":"Project updated","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Project"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}}},"delete":{"tags":["Projects (Admin)"],"summary":"Soft-delete a project","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"responses":{"204":{"description":"Project deleted"},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/admin/projects/reorder":{"patch":{"tags":["Projects (Admin)"],"summary":"Bulk-update sort order (drag-and-drop persistence)","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["order"],"properties":{"order":{"type":"array","items":{"type":"object","required":["id","sort_order"],"properties":{"id":{"type":"integer"},"sort_order":{"type":"integer"}}}}},"example":{"order":[{"id":12,"sort_order":1},{"id":8,"sort_order":2},{"id":15,"sort_order":3}]}}}}},"responses":{"200":{"description":"Sort order updated","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"updated":{"type":"integer","example":3}}}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/admin/case-studies":{"get":{"tags":["Case Studies (Admin)"],"summary":"List all case studies (any status)","security":[{"bearerAuth":[]}],"parameters":[{"name":"status","in":"query","schema":{"type":"string","enum":["draft","published"]}}],"responses":{"200":{"description":"A list of all case studies regardless of status","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CaseStudyDetail"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"}}},"post":{"tags":["Case Studies (Admin)"],"summary":"Create a case study","description":"A project may only have one linked case study (1:1 relationship).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CaseStudyCreateRequest"}}}},"responses":{"201":{"description":"Case study created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CaseStudyDetail"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"409":{"$ref":"#/components/responses/CaseStudyAlreadyExists"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/admin/case-studies/{id}":{"get":{"tags":["Case Studies (Admin)"],"summary":"Get a single case study (any status)","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"responses":{"200":{"description":"Case study detail","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CaseStudyDetail"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"}}},"patch":{"tags":["Case Studies (Admin)"],"summary":"Update a case study","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CaseStudyUpdateRequest"}}}},"responses":{"200":{"description":"Case study updated","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CaseStudyDetail"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}}},"delete":{"tags":["Case Studies (Admin)"],"summary":"Soft-delete a case study","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"responses":{"204":{"description":"Case study deleted"},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/admin/team":{"get":{"tags":["Team (Admin)"],"summary":"List all team members (active + inactive)","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"A list of all team members","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TeamMember"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"}}},"post":{"tags":["Team (Admin)"],"summary":"Create a team member","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TeamMemberCreateRequest"}}}},"responses":{"201":{"description":"Team member created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TeamMember"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/admin/team/{id}":{"get":{"tags":["Team (Admin)"],"summary":"Get a single team member","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"responses":{"200":{"description":"Team member detail","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TeamMember"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"}}},"patch":{"tags":["Team (Admin)"],"summary":"Update a team member","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TeamMemberUpdateRequest"}}}},"responses":{"200":{"description":"Team member updated","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/TeamMember"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}}},"delete":{"tags":["Team (Admin)"],"summary":"Soft-delete a team member","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"responses":{"204":{"description":"Team member deleted"},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/admin/team/reorder":{"patch":{"tags":["Team (Admin)"],"summary":"Bulk-update team member sort order","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["order"],"properties":{"order":{"type":"array","items":{"type":"object","required":["id","sort_order"],"properties":{"id":{"type":"integer"},"sort_order":{"type":"integer"}}}}}}}}},"responses":{"200":{"description":"Sort order updated","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"updated":{"type":"integer"}}}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/admin/testimonials":{"get":{"tags":["Testimonials (Admin)"],"summary":"List all testimonials (any status)","security":[{"bearerAuth":[]}],"parameters":[{"name":"status","in":"query","schema":{"type":"string","enum":["draft","published"]}},{"name":"project_id","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"A list of all testimonials regardless of status","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Testimonial"}},"meta":{"$ref":"#/components/schemas/PaginationMeta"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"}}},"post":{"tags":["Testimonials (Admin)"],"summary":"Create a testimonial","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TestimonialCreateRequest"}}}},"responses":{"201":{"description":"Testimonial created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Testimonial"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/admin/testimonials/{id}":{"get":{"tags":["Testimonials (Admin)"],"summary":"Get a single testimonial","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"responses":{"200":{"description":"Testimonial detail","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Testimonial"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"}}},"patch":{"tags":["Testimonials (Admin)"],"summary":"Update a testimonial","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/TestimonialUpdateRequest"}}}},"responses":{"200":{"description":"Testimonial updated","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Testimonial"}}}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/ValidationError"}}},"delete":{"tags":["Testimonials (Admin)"],"summary":"Soft-delete a testimonial","security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/IdPathParam"}],"responses":{"204":{"description":"Testimonial deleted"},"401":{"$ref":"#/components/responses/Unauthenticated"},"404":{"$ref":"#/components/responses/NotFound"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Sanctum token","description":"Laravel Sanctum bearer token, returned by /admin/auth/login. Pass as `Authorization: Bearer {token}`. Admin Dashboard (Blade) may alternatively use cookie/session auth in v1; see SRS Section 3.1.\n"}},"parameters":{"SlugPathParam":{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"example":"brand-refresh-acme-co"},"IdPathParam":{"name":"id","in":"path","required":true,"schema":{"type":"integer"},"example":12}},"schemas":{"ImageVariant":{"type":"object","properties":{"webp":{"type":"string","format":"uri","example":"https://cdn.yourdomain.com/projects/12/cover.webp"},"fallback":{"type":"string","format":"uri","example":"https://cdn.yourdomain.com/projects/12/cover.jpg"}}},"PaginationMeta":{"type":"object","properties":{"total":{"type":"integer","example":14},"per_page":{"type":"integer","example":50},"current_page":{"type":"integer","example":1},"last_page":{"type":"integer","example":1}}},"Status":{"type":"string","enum":["draft","published"]},"AdminUser":{"type":"object","properties":{"id":{"type":"integer","example":1},"name":{"type":"string","example":"Admin Alex"},"email":{"type":"string","format":"email","example":"alex@agency.com"}}},"ProjectRef":{"type":"object","description":"Minimal project reference, embedded in other resources","properties":{"id":{"type":"integer","example":12},"title":{"type":"string","example":"Brand Refresh — Acme Co."},"slug":{"type":"string","example":"brand-refresh-acme-co"}}},"Project":{"type":"object","properties":{"id":{"type":"integer","example":12},"title":{"type":"string","example":"Brand Refresh — Acme Co."},"slug":{"type":"string","example":"brand-refresh-acme-co"},"cover_image":{"$ref":"#/components/schemas/ImageVariant"},"description":{"type":"string","description":"HTML rich text","example":"<p>A full visual identity overhaul...</p>"},"category":{"type":"string","example":"branding"},"status":{"$ref":"#/components/schemas/Status"},"sort_order":{"type":"integer","example":1},"has_case_study":{"type":"boolean","example":true},"case_study_slug":{"type":"string","nullable":true,"example":"brand-refresh-acme-co"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ProjectDetail":{"allOf":[{"$ref":"#/components/schemas/Project"},{"type":"object","properties":{"gallery":{"type":"array","items":{"$ref":"#/components/schemas/ImageVariant"}},"testimonials":{"type":"array","items":{"$ref":"#/components/schemas/Testimonial"}}}}]},"ProjectCreateRequest":{"type":"object","required":["title","cover_image","description","category"],"properties":{"title":{"type":"string","example":"New Project"},"slug":{"type":"string","description":"Auto-generated from title if omitted"},"cover_image":{"type":"string","format":"binary"},"description":{"type":"string","description":"HTML rich text"},"category":{"type":"string","example":"branding"},"status":{"$ref":"#/components/schemas/Status"}}},"ProjectUpdateRequest":{"allOf":[{"$ref":"#/components/schemas/ProjectCreateRequest"}],"description":"All fields optional on update (partial update via PATCH)"},"CaseStudyDetail":{"type":"object","properties":{"id":{"type":"integer","example":7},"project":{"$ref":"#/components/schemas/ProjectRef"},"challenge":{"type":"string","description":"HTML rich text"},"solution":{"type":"string","description":"HTML rich text"},"impact":{"type":"string","description":"HTML rich text"},"gallery":{"type":"array","items":{"$ref":"#/components/schemas/ImageVariant"}},"seo":{"type":"object","properties":{"meta_title":{"type":"string","maxLength":60,"example":"Brand Refresh for Acme Co. | Agency Name"},"meta_description":{"type":"string","maxLength":160,"example":"How we helped Acme Co. unify their brand identity and grow recognition by 34%."},"og_image":{"type":"string","format":"uri"}}},"testimonials":{"type":"array","items":{"$ref":"#/components/schemas/Testimonial"}},"status":{"$ref":"#/components/schemas/Status"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"CaseStudyCreateRequest":{"type":"object","required":["project_id","challenge","solution","impact"],"properties":{"project_id":{"type":"integer","example":12},"challenge":{"type":"string"},"solution":{"type":"string"},"impact":{"type":"string"},"meta_title":{"type":"string","maxLength":60,"description":"Required before status can be set to published"},"meta_description":{"type":"string","maxLength":160,"description":"Required before status can be set to published"},"og_image":{"type":"string","format":"binary","description":"Recommended 1200x630px. Required before status can be set to published"},"status":{"$ref":"#/components/schemas/Status"}}},"CaseStudyUpdateRequest":{"allOf":[{"$ref":"#/components/schemas/CaseStudyCreateRequest"}],"description":"All fields optional on update (partial update via PATCH)"},"TeamMember":{"type":"object","properties":{"id":{"type":"integer","example":3},"name":{"type":"string","example":"Sam Rivera"},"role":{"type":"string","example":"Creative Director"},"bio":{"type":"string","example":"Sam has led brand strategy for over a decade..."},"photo":{"$ref":"#/components/schemas/ImageVariant"},"is_active":{"type":"boolean","default":true},"sort_order":{"type":"integer","example":1}}},"TeamMemberCreateRequest":{"type":"object","required":["name","role","bio","photo"],"properties":{"name":{"type":"string"},"role":{"type":"string"},"bio":{"type":"string"},"photo":{"type":"string","format":"binary"},"is_active":{"type":"boolean","default":true}}},"TeamMemberUpdateRequest":{"allOf":[{"$ref":"#/components/schemas/TeamMemberCreateRequest"}],"description":"All fields optional on update (partial update via PATCH)"},"Testimonial":{"type":"object","properties":{"id":{"type":"integer","example":4},"client_name":{"type":"string","example":"Jane Cooper"},"client_title":{"type":"string","nullable":true,"example":"CMO, Acme Co."},"quote":{"type":"string","example":"The results exceeded every benchmark we set."},"client_photo":{"allOf":[{"$ref":"#/components/schemas/ImageVariant"}],"nullable":true},"project":{"allOf":[{"$ref":"#/components/schemas/ProjectRef"}],"nullable":true},"status":{"$ref":"#/components/schemas/Status"}}},"TestimonialCreateRequest":{"type":"object","required":["client_name","quote"],"properties":{"project_id":{"type":"integer","nullable":true},"client_name":{"type":"string"},"client_title":{"type":"string"},"quote":{"type":"string"},"client_photo":{"type":"string","format":"binary"},"status":{"$ref":"#/components/schemas/Status"}}},"TestimonialUpdateRequest":{"allOf":[{"$ref":"#/components/schemas/TestimonialCreateRequest"}],"description":"All fields optional on update (partial update via PATCH)"},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"VALIDATION_ERROR"},"message":{"type":"string","example":"The given data was invalid."},"fields":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"example":{"title":["The title field is required."],"cover_image":["The cover image must be a file of type: jpg, jpeg, png, webp."]}}}}}}},"responses":{"ValidationError":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"Missing or invalid authentication token","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"UNAUTHENTICATED"},"message":{"type":"string","example":"Authentication required."}}}}}}}},"InvalidCredentials":{"description":"Login credentials were incorrect","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"INVALID_CREDENTIALS"},"message":{"type":"string","example":"The provided credentials do not match our records."}}}}}}}},"NotFound":{"description":"Resource not found or not published","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"RESOURCE_NOT_FOUND"},"message":{"type":"string","example":"No published project matches this slug."}}}}}}}},"DuplicateSlug":{"description":"Slug already in use","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"DUPLICATE_SLUG"},"message":{"type":"string","example":"This slug is already in use."}}}}}}}},"CaseStudyAlreadyExists":{"description":"Project already has a linked case study","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"CASE_STUDY_ALREADY_EXISTS"},"message":{"type":"string","example":"This project already has a linked case study."}}}}}}}}}}}