File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Take a look at [a few examples](https://github.com/papsign/Ktor-OpenAPI-Generato
3232### Gradle
3333
3434Step 1. Add the JitPack repository to your build file:
35- ```
35+ ``` groovy
3636allprojects {
3737 repositories {
3838 ...
@@ -41,25 +41,25 @@ allprojects {
4141}
4242```
4343Step 2. Add the dependency:
44- ```
44+ ``` groovy
4545dependencies {
4646 implementation 'com.github.papsign:Ktor-OpenAPI-Generator:-SNAPSHOT'
4747}
4848```
4949
5050### Git Submodule
5151Install the submodule:
52- ```
52+ ``` shell
5353git submodule add https://github.com/papsign/Ktor-OpenAPI-Generator.git openapigen
5454```
5555
5656Declare the folder in settings.gradle:
57- ```
57+ ``` groovy
5858...
5959include 'openapigen'
6060```
6161Declare the dependency in the main build.gradle
62- ```
62+ ``` groovy
6363apply plugin: 'kotlin'
6464
6565...
@@ -72,7 +72,7 @@ dependencies {
7272
7373## Expose the OpenAPI.json and swager-ui
7474
75- ```
75+ ``` kotlin
7676application.routing {
7777 get(" /openapi.json" ) {
7878 call.respond(application.openAPIGen.api.serialize())
You can’t perform that action at this time.
0 commit comments