-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add basic starting api implementation
- Loading branch information
Semyon Deev
committed
Jan 25, 2024
1 parent
744b5b6
commit 8b88301
Showing
17 changed files
with
851 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package: desc | ||
generate: | ||
chi-server: true | ||
strict-server: true | ||
models: true | ||
output: ./internal/api/gen/api-server.gen.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
openapi: 3.0.2 | ||
servers: | ||
- url: /v1 | ||
info: | ||
version: 1.0.0 | ||
title: multichat bot api | ||
tags: | ||
- name: twitch | ||
description: Twitch service api | ||
- name: youtube | ||
description: youtube service api | ||
paths: | ||
'/twitch/{chat}': | ||
post: | ||
tags: | ||
- twitch | ||
summary: Join the twitch chat for the specified channel | ||
description: '' | ||
operationId: joinTwitchChat | ||
responses: | ||
'200': | ||
description: Successful operation | ||
'500': | ||
description: Unable to join chat | ||
parameters: | ||
- name: chat | ||
in: path | ||
description: the username to connect to the chat | ||
required: true | ||
schema: | ||
type: string | ||
delete: | ||
tags: | ||
- twitch | ||
summary: Leave the twitch chat for the specified channel | ||
description: '' | ||
operationId: leaveTwitchChat | ||
responses: | ||
'200': | ||
description: Successful operation | ||
'500': | ||
description: Unable to leave chat | ||
parameters: | ||
- name: chat | ||
in: path | ||
description: the username to leave to the chat | ||
required: true | ||
schema: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.