Skip to content

Commit

Permalink
revert petstore test server url to http://petstore.swagger.io and reg…
Browse files Browse the repository at this point in the history
…enerate samples
  • Loading branch information
thorstenhirsch committed May 9, 2024
1 parent c992586 commit c6e1264
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 52 deletions.
6 changes: 3 additions & 3 deletions samples/client/petstore/java/jersey2-java8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public class AnotherFakeApiExample {

public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
UUID uuidTest = UUID.randomUUID(); // UUID | to test uuid example value
Expand All @@ -137,7 +137,7 @@ public class AnotherFakeApiExample {

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down Expand Up @@ -240,7 +240,7 @@ Authentication schemes defined for the API:

- **Type**: OAuth
- **Flow**: implicit
- **Authorization URL**: https://petstore.swagger.io/api/oauth/dialog
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
- **Scopes**:
- write:pets: modify pets in your account
- read:pets: read your pets
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/java/jersey2-java8/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
title: OpenAPI Petstore
version: 1.0.0
servers:
- url: https://petstore.swagger.io/v2
- url: http://petstore.swagger.io:80/v2
tags:
- description: Everything about your Pets
name: pet
Expand Down Expand Up @@ -2235,7 +2235,7 @@ components:
petstore_auth:
flows:
implicit:
authorizationUrl: https://petstore.swagger.io/api/oauth/dialog
authorizationUrl: http://petstore.swagger.io/api/oauth/dialog
scopes:
write:pets: modify pets in your account
read:pets: read your pets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AnotherFakeApi

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

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
Expand Down Expand Up @@ -30,7 +30,7 @@ import org.openapitools.client.api.AnotherFakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
UUID uuidTest = UUID.randomUUID(); // UUID | to test uuid example value
Expand Down
30 changes: 15 additions & 15 deletions samples/client/petstore/java/jersey2-java8/docs/FakeApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeApi

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

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
Expand Down Expand Up @@ -42,7 +42,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body
Expand Down Expand Up @@ -106,7 +106,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
Boolean body = true; // Boolean | Input boolean as post body
Expand Down Expand Up @@ -171,7 +171,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
Expand Down Expand Up @@ -237,7 +237,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
BigDecimal body = new BigDecimal(78); // BigDecimal | Input number as post body
Expand Down Expand Up @@ -302,7 +302,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
String body = "body_example"; // String | Input string as post body
Expand Down Expand Up @@ -367,7 +367,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
Expand Down Expand Up @@ -429,7 +429,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
String query = "query_example"; // String |
Expand Down Expand Up @@ -495,7 +495,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
Client body = new Client(); // Client | client model
Expand Down Expand Up @@ -568,7 +568,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure HTTP basic authorization: http_basic_test
HttpBasicAuth http_basic_test = (HttpBasicAuth) defaultClient.getAuthentication("http_basic_test");
Expand Down Expand Up @@ -664,7 +664,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
List<String> enumHeaderStringArray = Arrays.asList("$"); // List<String> | Header parameter enum test (string array)
Expand Down Expand Up @@ -743,7 +743,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
Integer requiredStringGroup = 56; // Integer | Required String in group parameters
Expand Down Expand Up @@ -822,7 +822,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
Map<String, String> param = new HashMap(); // Map<String, String> | request body
Expand Down Expand Up @@ -884,7 +884,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
String param = "param_example"; // String | field1
Expand Down Expand Up @@ -950,7 +950,7 @@ import org.openapitools.client.api.FakeApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

FakeApi apiInstance = new FakeApi(defaultClient);
List<String> pipe = Arrays.asList(); // List<String> |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeClassnameTags123Api

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

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
Expand Down Expand Up @@ -30,7 +30,7 @@ import org.openapitools.client.api.FakeClassnameTags123Api;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure API key authorization: api_key_query
ApiKeyAuth api_key_query = (ApiKeyAuth) defaultClient.getAuthentication("api_key_query");
Expand Down
20 changes: 10 additions & 10 deletions samples/client/petstore/java/jersey2-java8/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:80/v2*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
Expand Down Expand Up @@ -36,7 +36,7 @@ import org.openapitools.client.api.PetApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure OAuth2 access token for authorization: petstore_auth
OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
Expand Down Expand Up @@ -104,7 +104,7 @@ import org.openapitools.client.api.PetApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure OAuth2 access token for authorization: petstore_auth
OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
Expand Down Expand Up @@ -176,7 +176,7 @@ import org.openapitools.client.api.PetApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure OAuth2 access token for authorization: petstore_auth
OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
Expand Down Expand Up @@ -247,7 +247,7 @@ import org.openapitools.client.api.PetApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure OAuth2 access token for authorization: petstore_auth
OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
Expand Down Expand Up @@ -318,7 +318,7 @@ import org.openapitools.client.api.PetApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
Expand Down Expand Up @@ -390,7 +390,7 @@ import org.openapitools.client.api.PetApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure OAuth2 access token for authorization: petstore_auth
OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
Expand Down Expand Up @@ -460,7 +460,7 @@ import org.openapitools.client.api.PetApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure OAuth2 access token for authorization: petstore_auth
OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
Expand Down Expand Up @@ -532,7 +532,7 @@ import org.openapitools.client.api.PetApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure OAuth2 access token for authorization: petstore_auth
OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
Expand Down Expand Up @@ -605,7 +605,7 @@ import org.openapitools.client.api.PetApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure OAuth2 access token for authorization: petstore_auth
OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
Expand Down
10 changes: 5 additions & 5 deletions samples/client/petstore/java/jersey2-java8/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:80/v2*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
Expand Down Expand Up @@ -32,7 +32,7 @@ import org.openapitools.client.api.StoreApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

StoreApi apiInstance = new StoreApi(defaultClient);
String orderId = "orderId_example"; // String | ID of the order that needs to be deleted
Expand Down Expand Up @@ -98,7 +98,7 @@ import org.openapitools.client.api.StoreApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
Expand Down Expand Up @@ -165,7 +165,7 @@ import org.openapitools.client.api.StoreApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

StoreApi apiInstance = new StoreApi(defaultClient);
Long orderId = 56L; // Long | ID of pet that needs to be fetched
Expand Down Expand Up @@ -230,7 +230,7 @@ import org.openapitools.client.api.StoreApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://petstore.swagger.io/v2");
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");

StoreApi apiInstance = new StoreApi(defaultClient);
Order body = new Order(); // Order | order placed for purchasing the pet
Expand Down

0 comments on commit c6e1264

Please sign in to comment.