-
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.
Merge pull request #17 from titouanfreville/issue-6-APIimpl
Issue 6 ap impl
- Loading branch information
Showing
68 changed files
with
1,481 additions
and
17,641 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 |
---|---|---|
|
@@ -256,3 +256,5 @@ vendor/* | |
.env* | ||
!.env.dist | ||
!.env.test | ||
docker_resources/* | ||
!docker_resources/README.md |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,104 @@ | ||
package api | ||
|
||
import "github.com/titouanfreville/popcubeapi/models" | ||
|
||
// <><><><><> AVATAR PARAMETERS <><><><><> // | ||
|
||
// swagger:parameters getAvatarFromLink | ||
type avatarLinkParam struct { | ||
//Link of the avatar in server. | ||
// in:path | ||
AvatarLink string `json:"avatarLink"` | ||
} | ||
|
||
// swagger:parameters getAvatarFromName | ||
type avatarNameParam struct { | ||
//Link of the avatar in server. | ||
// in:path | ||
AvatarName string `json:"avatarName"` | ||
} | ||
|
||
// swagger:parameters updateAvatar deleteAvatar | ||
type avatarIDParam struct { | ||
//Link of the avatar in server. | ||
// in:path | ||
AvatarID int `json:"avatarID"` | ||
} | ||
|
||
// swagger:parameters newAvatar updateAvatar | ||
type avatarObjectParam struct { | ||
//Link of the avatar in server. | ||
// in:body | ||
Avatar models.Avatar `json:"avatar"` | ||
} | ||
|
||
// <><><><><> <><><><><> <><><><><> <><><><><> // | ||
// <><><><><> CHANNEL PARAMETERS <><><><><> // | ||
|
||
// swagger:parameters getChannelFromType | ||
type channelTypeParam struct { | ||
//Link of the channel in server. | ||
// in:path | ||
ChannelType string `json:"channelType"` | ||
} | ||
|
||
// swagger:parameters getChannelFromName | ||
type channelNameParam struct { | ||
//Link of the channel in server. | ||
// in:path | ||
ChannelName string `json:"channelName"` | ||
} | ||
|
||
// swagger:parameters updateChannel deleteChannel | ||
type channelIDParam struct { | ||
//Link of the channel in server. | ||
// in:path | ||
ChannelID int `json:"channelID"` | ||
} | ||
|
||
// swagger:parameters newChannel updateChannel | ||
type channelObjectParam struct { | ||
//Link of the channel in server. | ||
// in:body | ||
Channel models.Channel `json:"channel"` | ||
} | ||
|
||
// <><><><><> <><><><><> <><><><><> <><><><><> // | ||
// <><><><><> EMOJI PARAMETERS <><><><><> // | ||
|
||
// swagger:parameters getEmojiFromLink | ||
type emojiLinkParam struct { | ||
//Link of the emoji in server. | ||
// in:path | ||
EmojiLink string `json:"emojiLink"` | ||
} | ||
|
||
// swagger:parameters getEmojiFromName | ||
type emojiNameParam struct { | ||
//Link of the emoji in server. | ||
// in:path | ||
EmojiName string `json:"emojiName"` | ||
} | ||
|
||
// swagger:parameters getEmojiFromShortcut | ||
type emojiShortcutParam struct { | ||
//Link of the emoji in server. | ||
// in:path | ||
EmojiShortcut string `json:"emojiShortcut"` | ||
} | ||
|
||
// swagger:parameters updateEmoji deleteEmoji | ||
type emojiIDParam struct { | ||
//Link of the emoji in server. | ||
// in:path | ||
EmojiID int `json:"emojiID"` | ||
} | ||
|
||
// swagger:parameters newEmoji updateEmoji | ||
type emojiObjectParam struct { | ||
//Link of the emoji in server. | ||
// in:body | ||
Emoji models.Emoji `json:"emoji"` | ||
} | ||
|
||
// <><><><><> <><><><><> <><><><><> <><><><><> // |
Oops, something went wrong.