Skip to content

Commit d3b1073

Browse files
authored
Update README.md
1 parent fd66e0e commit d3b1073

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Take a look at [a few examples](https://github.com/papsign/Ktor-OpenAPI-Generato
3232
### Gradle
3333

3434
Step 1. Add the JitPack repository to your build file:
35-
```
35+
```groovy
3636
allprojects {
3737
repositories {
3838
...
@@ -41,25 +41,25 @@ allprojects {
4141
}
4242
```
4343
Step 2. Add the dependency:
44-
```
44+
```groovy
4545
dependencies {
4646
implementation 'com.github.papsign:Ktor-OpenAPI-Generator:-SNAPSHOT'
4747
}
4848
```
4949

5050
### Git Submodule
5151
Install the submodule:
52-
```
52+
```shell
5353
git submodule add https://github.com/papsign/Ktor-OpenAPI-Generator.git openapigen
5454
```
5555

5656
Declare the folder in settings.gradle:
57-
```
57+
```groovy
5858
...
5959
include 'openapigen'
6060
```
6161
Declare the dependency in the main build.gradle
62-
```
62+
```groovy
6363
apply plugin: 'kotlin'
6464
6565
...
@@ -72,7 +72,7 @@ dependencies {
7272

7373
## Expose the OpenAPI.json and swager-ui
7474

75-
```
75+
```kotlin
7676
application.routing {
7777
get("/openapi.json") {
7878
call.respond(application.openAPIGen.api.serialize())

0 commit comments

Comments
 (0)