-
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.
docs(friendships-service): add enpoints api specs
- Loading branch information
1 parent
adada6f
commit 6dc6174
Showing
4 changed files
with
68 additions
and
14 deletions.
There are no files selected for viewing
25 changes: 23 additions & 2 deletions
25
friendships-service/src/main/kotlin/piperkt/services/friendships/Application.kt
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,7 +1,28 @@ | ||
package piperkt.services.friendships | ||
|
||
import io.micronaut.runtime.Micronaut.run | ||
import io.swagger.v3.oas.annotations.OpenAPIDefinition | ||
import io.swagger.v3.oas.annotations.info.Contact | ||
import io.swagger.v3.oas.annotations.info.Info | ||
|
||
fun main(vararg args: String) { | ||
run(*args) | ||
@OpenAPIDefinition( | ||
info = | ||
Info( | ||
title = "Piper-kt Friendships API", | ||
version = "1.0", | ||
description = "Piper-kt Friendships Service API", | ||
contact = | ||
Contact( | ||
url = "https://piper-kt.com", | ||
name = "Zucchero Sintattico", | ||
email = "[email protected]" | ||
) | ||
) | ||
) | ||
object Application { | ||
|
||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
run(Application.javaClass) | ||
} | ||
} |
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