Skip to content

Commit

Permalink
reverted scheme to http and update client samples
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMario committed Mar 2, 2021
1 parent 1aa1f3f commit b78de69
Show file tree
Hide file tree
Showing 27 changed files with 743 additions and 26 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tags:
description: Find out more about our store
url: 'http://swagger.io'
schemes:
- https
- http
paths:
/pet:
post:
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin-string/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This runs all tests and packages the library.
<a name="documentation-for-api-endpoints"></a>
## Documentation for API Endpoints

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin-string/docs/PetApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PetApi

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin-string/docs/StoreApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StoreApi

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin-string/docs/UserApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UserApi

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import io.swagger.client.models.Pet

import io.swagger.client.infrastructure.*

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

/**
* Add a new pet to the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import io.swagger.client.models.Order

import io.swagger.client.infrastructure.*

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

/**
* Delete purchase order by ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import io.swagger.client.models.User

import io.swagger.client.infrastructure.*

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

/**
* Create user
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin-threetenbp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This runs all tests and packages the library.
<a name="documentation-for-api-endpoints"></a>
## Documentation for API Endpoints

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin-threetenbp/docs/PetApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PetApi

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin-threetenbp/docs/StoreApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StoreApi

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin-threetenbp/docs/UserApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UserApi

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import io.swagger.client.models.Pet
import io.swagger.client.infrastructure.*
import org.threeten.bp.LocalDateTime

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

/**
* Add a new pet to the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import io.swagger.client.models.Order
import io.swagger.client.infrastructure.*
import org.threeten.bp.LocalDateTime

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

/**
* Delete purchase order by ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import io.swagger.client.models.User
import io.swagger.client.infrastructure.*
import org.threeten.bp.LocalDateTime

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

/**
* Create user
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This runs all tests and packages the library.
<a name="documentation-for-api-endpoints"></a>
## Documentation for API Endpoints

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin/docs/PetApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PetApi

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin/docs/StoreApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StoreApi

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/kotlin/docs/UserApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UserApi

All URIs are relative to *https://petstore.swagger.io/v2*
All URIs are relative to *http://petstore.swagger.io/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import io.swagger.client.models.Pet

import io.swagger.client.infrastructure.*

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

/**
* Add a new pet to the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import io.swagger.client.models.Order

import io.swagger.client.infrastructure.*

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

/**
* Delete purchase order by ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import io.swagger.client.models.User

import io.swagger.client.infrastructure.*

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

/**
* Create user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package io.swagger.client.infrastructure
import okhttp3.*
import java.io.File
import java.io.IOException
import java.nio.file.Files
import java.nio.file.Files;
import java.util.regex.Pattern

open class ApiClient(val baseUrl: String) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import org.springframework.cloud.netflix.feign.FeignClient;
import io.swagger.configuration.ClientConfiguration;

@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:https://petstore.swagger.io}", configuration = ClientConfiguration.class)
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:http://petstore.swagger.io}", configuration = ClientConfiguration.class)
public interface PetApiClient extends PetApi {
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import org.springframework.cloud.netflix.feign.FeignClient;
import io.swagger.configuration.ClientConfiguration;

@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:https://petstore.swagger.io}", configuration = ClientConfiguration.class)
@FeignClient(name="${swaggerPetstore.name:swaggerPetstore}", url="${swaggerPetstore.url:http://petstore.swagger.io}", configuration = ClientConfiguration.class)
public interface StoreApiClient extends StoreApi {
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import org.springframework.cloud.netflix.feign.FeignClient;
import io.swagger.configuration.ClientConfiguration;

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

0 comments on commit b78de69

Please sign in to comment.