openapi: 3.1.0 info: # Do not change the title, if the title changes, the import paths will be broken title: Api version: 0.1.0 description: API specification servers: - url: /api description: Base API path tags: - name: health description: Health operations - name: editors description: Editor operations - name: platform description: Platform operations - name: community description: Community operations paths: /healthz: get: operationId: healthCheck tags: [health] summary: Health check description: Returns server health status responses: "200": description: Healthy content: application/json: schema: $ref: "#/components/schemas/HealthStatus" /editors: get: operationId: listEditors tags: [editors] summary: List editors description: Returns a filtered, paginated list of editors parameters: - name: q in: query schema: type: string - name: specialty in: query schema: type: string - name: software in: query schema: type: string - name: experience in: query schema: type: string - name: limit in: query schema: type: integer responses: "200": description: List of editors content: application/json: schema: type: array items: $ref: "#/components/schemas/EditorSummary" /editors/top: get: operationId: getTopEditors tags: [editors] summary: Get top editors by views parameters: - name: limit in: query schema: type: integer responses: "200": description: Top editors content: application/json: schema: type: array items: $ref: "#/components/schemas/EditorSummary" /editors/{username}: get: operationId: getEditorByUsername tags: [editors] summary: Get editor by username parameters: - name: username in: path required: true schema: type: string responses: "200": description: Editor profile content: application/json: schema: $ref: "#/components/schemas/EditorProfile" "404": description: Not found /editors/{username}/projects: get: operationId: getEditorProjects tags: [editors] summary: Get editor's projects parameters: - name: username in: path required: true schema: type: string responses: "200": description: Projects content: application/json: schema: type: array items: $ref: "#/components/schemas/Project" post: operationId: createProject tags: [editors] summary: Create a project for an editor parameters: - name: username in: path required: true schema: type: string requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CreateProjectInput" responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/Project" /projects/{id}: delete: operationId: deleteProject tags: [editors] summary: Delete a project parameters: - name: id in: path required: true schema: type: integer responses: "204": description: Deleted /platform/stats: get: operationId: getPlatformStats tags: [platform] summary: Get platform statistics responses: "200": description: Platform stats content: application/json: schema: $ref: "#/components/schemas/PlatformStats" /community/posts: get: operationId: getCommunityPosts tags: [community] summary: Get community posts parameters: - name: limit in: query schema: type: integer responses: "200": description: Community posts content: application/json: schema: type: array items: $ref: "#/components/schemas/CommunityPost" components: schemas: HealthStatus: type: object properties: status: type: string required: - status EditorSummary: type: object properties: id: type: integer username: type: string name: type: string bio: type: string nullable: true location: type: string nullable: true specialty: type: string nullable: true experience: type: string nullable: true skills: type: array items: type: string software: type: array items: type: string totalViews: type: integer projectCount: type: integer testimonialCount: type: integer avatarUrl: type: string nullable: true youtube: type: string nullable: true instagram: type: string nullable: true linkedin: type: string nullable: true twitter: type: string nullable: true website: type: string nullable: true required: - id - username - name - totalViews - projectCount - testimonialCount EditorProfile: allOf: - $ref: "#/components/schemas/EditorSummary" - type: object properties: bannerUrl: type: string nullable: true projects: type: array items: $ref: "#/components/schemas/Project" testimonials: type: array items: $ref: "#/components/schemas/Testimonial" achievements: type: array items: $ref: "#/components/schemas/Achievement" Project: type: object properties: id: type: integer title: type: string description: type: string nullable: true videoUrl: type: string nullable: true thumbnailUrl: type: string nullable: true viewsGenerated: type: integer nullable: true required: - id - title CreateProjectInput: type: object properties: title: type: string description: type: string nullable: true videoUrl: type: string nullable: true viewsGenerated: type: integer nullable: true required: - title Testimonial: type: object properties: id: type: integer testimonial: type: string creatorName: type: string nullable: true creatorChannel: type: string nullable: true required: - id - testimonial Achievement: type: object properties: id: type: integer badgeName: type: string required: - id - badgeName PlatformStats: type: object properties: totalEditors: type: integer totalProjects: type: integer totalViews: type: integer totalTestimonials: type: integer required: - totalEditors - totalProjects - totalViews - totalTestimonials CommunityPost: type: object properties: id: type: integer title: type: string body: type: string nullable: true author: type: string upvotes: type: integer commentCount: type: integer url: type: string nullable: true createdAt: type: string required: - id - title - author - upvotes - commentCount - createdAt