Skip to content

Commit b78de69

Browse files
committed
reverted scheme to http and update client samples
1 parent 1aa1f3f commit b78de69

File tree

27 files changed

+743
-26
lines changed

27 files changed

+743
-26
lines changed

modules/swagger-codegen/src/test/resources/2_0/petstore-with-https.yaml

Lines changed: 717 additions & 0 deletions
Large diffs are not rendered by default.

modules/swagger-codegen/src/test/resources/2_0/petstore.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tags:
2525
description: Find out more about our store
2626
url: 'http://swagger.io'
2727
schemes:
28-
- https
28+
- http
2929
paths:
3030
/pet:
3131
post:

samples/client/petstore/kotlin-string/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This runs all tests and packages the library.
3131
<a name="documentation-for-api-endpoints"></a>
3232
## Documentation for API Endpoints
3333

34-
All URIs are relative to *https://petstore.swagger.io/v2*
34+
All URIs are relative to *http://petstore.swagger.io/v2*
3535

3636
Class | Method | HTTP request | Description
3737
------------ | ------------- | ------------- | -------------

samples/client/petstore/kotlin-string/docs/PetApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PetApi
22

3-
All URIs are relative to *https://petstore.swagger.io/v2*
3+
All URIs are relative to *http://petstore.swagger.io/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

samples/client/petstore/kotlin-string/docs/StoreApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# StoreApi
22

3-
All URIs are relative to *https://petstore.swagger.io/v2*
3+
All URIs are relative to *http://petstore.swagger.io/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

samples/client/petstore/kotlin-string/docs/UserApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# UserApi
22

3-
All URIs are relative to *https://petstore.swagger.io/v2*
3+
All URIs are relative to *http://petstore.swagger.io/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

samples/client/petstore/kotlin-string/src/main/kotlin/io/swagger/client/apis/PetApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import io.swagger.client.models.Pet
1616

1717
import io.swagger.client.infrastructure.*
1818

19-
class PetApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) {
19+
class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) {
2020

2121
/**
2222
* Add a new pet to the store

samples/client/petstore/kotlin-string/src/main/kotlin/io/swagger/client/apis/StoreApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import io.swagger.client.models.Order
1515

1616
import io.swagger.client.infrastructure.*
1717

18-
class StoreApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) {
18+
class StoreApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) {
1919

2020
/**
2121
* Delete purchase order by ID

samples/client/petstore/kotlin-string/src/main/kotlin/io/swagger/client/apis/UserApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import io.swagger.client.models.User
1515

1616
import io.swagger.client.infrastructure.*
1717

18-
class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) {
18+
class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) {
1919

2020
/**
2121
* Create user

samples/client/petstore/kotlin-threetenbp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This runs all tests and packages the library.
3131
<a name="documentation-for-api-endpoints"></a>
3232
## Documentation for API Endpoints
3333

34-
All URIs are relative to *https://petstore.swagger.io/v2*
34+
All URIs are relative to *http://petstore.swagger.io/v2*
3535

3636
Class | Method | HTTP request | Description
3737
------------ | ------------- | ------------- | -------------

samples/client/petstore/kotlin-threetenbp/docs/PetApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PetApi
22

3-
All URIs are relative to *https://petstore.swagger.io/v2*
3+
All URIs are relative to *http://petstore.swagger.io/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

samples/client/petstore/kotlin-threetenbp/docs/StoreApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# StoreApi
22

3-
All URIs are relative to *https://petstore.swagger.io/v2*
3+
All URIs are relative to *http://petstore.swagger.io/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

samples/client/petstore/kotlin-threetenbp/docs/UserApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# UserApi
22

3-
All URIs are relative to *https://petstore.swagger.io/v2*
3+
All URIs are relative to *http://petstore.swagger.io/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

samples/client/petstore/kotlin-threetenbp/src/main/kotlin/io/swagger/client/apis/PetApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import io.swagger.client.models.Pet
1717
import io.swagger.client.infrastructure.*
1818
import org.threeten.bp.LocalDateTime
1919

20-
class PetApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) {
20+
class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) {
2121

2222
/**
2323
* Add a new pet to the store

samples/client/petstore/kotlin-threetenbp/src/main/kotlin/io/swagger/client/apis/StoreApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import io.swagger.client.models.Order
1616
import io.swagger.client.infrastructure.*
1717
import org.threeten.bp.LocalDateTime
1818

19-
class StoreApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) {
19+
class StoreApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) {
2020

2121
/**
2222
* Delete purchase order by ID

samples/client/petstore/kotlin-threetenbp/src/main/kotlin/io/swagger/client/apis/UserApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import io.swagger.client.models.User
1616
import io.swagger.client.infrastructure.*
1717
import org.threeten.bp.LocalDateTime
1818

19-
class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) {
19+
class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) {
2020

2121
/**
2222
* Create user

samples/client/petstore/kotlin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This runs all tests and packages the library.
3131
<a name="documentation-for-api-endpoints"></a>
3232
## Documentation for API Endpoints
3333

34-
All URIs are relative to *https://petstore.swagger.io/v2*
34+
All URIs are relative to *http://petstore.swagger.io/v2*
3535

3636
Class | Method | HTTP request | Description
3737
------------ | ------------- | ------------- | -------------

samples/client/petstore/kotlin/docs/PetApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PetApi
22

3-
All URIs are relative to *https://petstore.swagger.io/v2*
3+
All URIs are relative to *http://petstore.swagger.io/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

samples/client/petstore/kotlin/docs/StoreApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# StoreApi
22

3-
All URIs are relative to *https://petstore.swagger.io/v2*
3+
All URIs are relative to *http://petstore.swagger.io/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

samples/client/petstore/kotlin/docs/UserApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# UserApi
22

3-
All URIs are relative to *https://petstore.swagger.io/v2*
3+
All URIs are relative to *http://petstore.swagger.io/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/PetApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import io.swagger.client.models.Pet
1616

1717
import io.swagger.client.infrastructure.*
1818

19-
class PetApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) {
19+
class PetApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) {
2020

2121
/**
2222
* Add a new pet to the store

samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/StoreApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import io.swagger.client.models.Order
1515

1616
import io.swagger.client.infrastructure.*
1717

18-
class StoreApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) {
18+
class StoreApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) {
1919

2020
/**
2121
* Delete purchase order by ID

samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/apis/UserApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import io.swagger.client.models.User
1515

1616
import io.swagger.client.infrastructure.*
1717

18-
class UserApi(basePath: kotlin.String = "https://petstore.swagger.io/v2") : ApiClient(basePath) {
18+
class UserApi(basePath: kotlin.String = "http://petstore.swagger.io/v2") : ApiClient(basePath) {
1919

2020
/**
2121
* Create user

samples/client/petstore/kotlin/src/main/kotlin/io/swagger/client/infrastructure/ApiClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package io.swagger.client.infrastructure
33
import okhttp3.*
44
import java.io.File
55
import java.io.IOException
6-
import java.nio.file.Files
6+
import java.nio.file.Files;
77
import java.util.regex.Pattern
88

99
open class ApiClient(val baseUrl: String) {

samples/client/petstore/spring-cloud/src/main/java/io/swagger/api/PetApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
import org.springframework.cloud.netflix.feign.FeignClient;
44
import io.swagger.configuration.ClientConfiguration;
55

6-
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:https://petstore.swagger.io}", configuration = ClientConfiguration.class)
6+
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:http://petstore.swagger.io}", configuration = ClientConfiguration.class)
77
public interface PetApiClient extends PetApi {
88
}

samples/client/petstore/spring-cloud/src/main/java/io/swagger/api/StoreApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
import org.springframework.cloud.netflix.feign.FeignClient;
44
import io.swagger.configuration.ClientConfiguration;
55

6-
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:https://petstore.swagger.io}", configuration = ClientConfiguration.class)
6+
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:http://petstore.swagger.io}", configuration = ClientConfiguration.class)
77
public interface StoreApiClient extends StoreApi {
88
}

samples/client/petstore/spring-cloud/src/main/java/io/swagger/api/UserApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
import org.springframework.cloud.netflix.feign.FeignClient;
44
import io.swagger.configuration.ClientConfiguration;
55

6-
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:https://petstore.swagger.io}", configuration = ClientConfiguration.class)
6+
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:http://petstore.swagger.io}", configuration = ClientConfiguration.class)
77
public interface UserApiClient extends UserApi {
88
}

0 commit comments

Comments
 (0)