Add open api generated components
This commit is contained in:
53
api-customer/api-resources/client-endpoint.yaml
Normal file
53
api-customer/api-resources/client-endpoint.yaml
Normal file
@@ -0,0 +1,53 @@
|
||||
openapi: "3.1.0"
|
||||
info:
|
||||
title: "boardmate_api API"
|
||||
description: "boardmate_api API"
|
||||
version: "1.0.0"
|
||||
servers:
|
||||
- url: "https://boardmate_api"
|
||||
paths:
|
||||
/client/create:
|
||||
post:
|
||||
summary: "POST client/create"
|
||||
operationId: "create"
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ClientDto"
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
description: "OK"
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/ResponseBodyString"
|
||||
components:
|
||||
schemas:
|
||||
|
||||
ResponseBodyString:
|
||||
type: "object"
|
||||
properties:
|
||||
data:
|
||||
type: "string"
|
||||
nullable: true
|
||||
message:
|
||||
type: "string"
|
||||
nullable: true
|
||||
success:
|
||||
type: "boolean"
|
||||
nullable: false
|
||||
|
||||
ClientDto:
|
||||
type: "object"
|
||||
properties:
|
||||
name:
|
||||
type: "string"
|
||||
nullable: true
|
||||
username:
|
||||
type: "string"
|
||||
nullable: true
|
||||
key:
|
||||
type: "string"
|
||||
nullable: true
|
||||
Reference in New Issue
Block a user