-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
574cc99
commit db44f31
Showing
13 changed files
with
43 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* | ||
* @author Martin Kuba [email protected] | ||
*/ | ||
@SpringBootApplication // this annotation marks this class as runnable Spring Boot app | ||
@SpringBootApplication // this annotation marks this class as a runnable Spring Boot app | ||
public class ChatApplication { | ||
|
||
public static void main(String[] args) { | ||
|
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
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 |
---|---|---|
|
@@ -51,8 +51,22 @@ | |
// see javadoc at https://javadoc.io/doc/io.swagger.core.v3/swagger-annotations/latest/index.html | ||
// see docs at https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Annotations | ||
info = @Info(title = "Example Chat Service", | ||
version = "1.0", | ||
description = "Simple Spring Boot service for chatting", | ||
version = "1.1", | ||
description = """ | ||
Simple service for chatting. The API has operations for: | ||
- getting all messages | ||
- creating a new message | ||
- getting messages in pages, i.e. last 20 messages or previous 20 messages | ||
- getting a specific message by its id | ||
The description of the API in OpenAPI format is generated by | ||
the tool [SpringDoc v2](https://springdoc.org/v2/) from annotated Java classes, | ||
mainly the controller class | ||
[ChatRestController](https://github.com/martin-kuba/muni-chat-service/blob/main/chat-server/src/main/java/cz/muni/chat/server/rest/ChatRestController.java) | ||
and the DTO classes in | ||
[cz.muni.chat.server.facade](https://github.com/martin-kuba/muni-chat-service/tree/main/chat-server/src/main/java/cz/muni/chat/server/facade) | ||
package. | ||
""", | ||
contact = @Contact(name = "Martin Kuba", email = "[email protected]", url = "https://www.muni.cz/lide/3988-martin-kuba"), | ||
license = @License(name = "Apache 2.0", url = "https://www.apache.org/licenses/LICENSE-2.0.html") | ||
), | ||
|
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
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 |
---|---|---|
@@ -1,15 +1,28 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: Example Chat Service | ||
description: Simple Spring Boot service for chatting | ||
description: | | ||
Simple service for chatting. The API has operations for: | ||
- getting all messages | ||
- creating a new message | ||
- getting messages in pages, i.e. last 20 messages or previous 20 messages | ||
- getting a specific message by its id | ||
The description of the API in OpenAPI format is generated by | ||
the tool [SpringDoc v2](https://springdoc.org/v2/) from annotated Java classes, | ||
mainly the controller class | ||
[ChatRestController](https://github.com/martin-kuba/muni-chat-service/blob/main/chat-server/src/main/java/cz/muni/chat/server/rest/ChatRestController.java) | ||
and the DTO classes in | ||
[cz.muni.chat.server.facade](https://github.com/martin-kuba/muni-chat-service/tree/main/chat-server/src/main/java/cz/muni/chat/server/facade) | ||
package. | ||
contact: | ||
name: Martin Kuba | ||
url: https://www.muni.cz/lide/3988-martin-kuba | ||
email: [email protected] | ||
license: | ||
name: Apache 2.0 | ||
url: https://www.apache.org/licenses/LICENSE-2.0.html | ||
version: "1.0" | ||
version: "1.1" | ||
servers: | ||
- url: "{scheme}://{server}:{port}" | ||
description: my server | ||
|
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