Skip to content

Commit

Permalink
Added swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
arumie committed Mar 2, 2024
1 parent e24c909 commit 73c54c1
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions AiTestimonials/openapi/swagger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
openapi: 3.0.1
info:
title: AI Testimonials
description: API for generating fake testimonials
version: 1.0.0
schemes:
- https
produces:
- application/json
paths:
/api/v1/ai-testimonials/generate:
post:
tags:
- AiTestimonialsApi
parameters:
- name: name
in: query
required: true
style: form
schema:
type: string
- name: skills
in: query
required: true
style: form
schema:
type: string
- name: OPENAI_KEY
in: header
style: simple
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/TestimonialResult'
/api/v1/ai-testimonials:
get:
tags:
- AiTestimonialsApi
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TestimonialResult'
components:
schemas:
TestimonialResult:
type: object
properties:
testimonial:
type: string
nullable: true
testifierName:
type: string
nullable: true
testifierCompany:
type: string
nullable: true
testifierPosition:
type: string
nullable: true
logoUrl:
type: string
nullable: true
logoB64:
type: string
nullable: true
additionalProperties: false

0 comments on commit 73c54c1

Please sign in to comment.