Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,35 @@ workflows:
#!/usr/bin/env bash

sudo gem install cocoapods
- script@1.1.4:
title: brew cask install docker-toolbox
inputs:
- content: |-
#!/bin/bash
set -ex

brew install docker-toolbox --cask
- script@1.1.4:
title: docker-machine create
inputs:
- content: |-
#!/bin/bash
set -ex

docker-machine create --driver "virtualbox" default
- script@1.2.0:
title: Run local petstore server via docker
inputs:
- content: |
#!/usr/bin/env bash

set -ex

eval $(docker-machine env default)

docker pull swaggerapi/petstore

docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
- script@1.2.0:
title: Run Swift6 tests
inputs:
Expand Down Expand Up @@ -48,4 +77,4 @@ workflows:

meta:
bitrise.io:
stack: osx-xcode-16.0.x
stack: osx-xcode-16.3.x
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ info:
license:
name: Apache-2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
host: petstore.swagger.io:80
host: localhost
basePath: /v2
tags:
- name: pet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import FoundationNetworking
#endif
open class PetstoreClientAPI {
public static var basePath = "http://petstore.swagger.io:80/v2"
public static var basePath = "http://localhost/v2"
public static var customHeaders: [String: String] = [:]
public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory()
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/swift5/alamofireLibrary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Run `pod install`

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AnotherFakeAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeClassnameTags123API

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PetAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StoreAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UserAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import FoundationNetworking
#endif
open class PetstoreClientAPI {
public static var basePath = "http://petstore.swagger.io:80/v2"
public static var basePath = "http://localhost/v2"
public static var customHeaders: [String: String] = [:]
public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/swift5/asyncAwaitLibrary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Run `pod install`

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AnotherFakeAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeClassnameTags123API

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PetAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StoreAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UserAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import FoundationNetworking
#endif
open class PetstoreClientAPI {
public static var basePath = "http://petstore.swagger.io:80/v2"
public static var basePath = "http://localhost/v2"
public static var customHeaders: [String: String] = [:]
public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/swift5/combineLibrary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Run `pod install`

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AnotherFakeAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeClassnameTags123API

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PetAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StoreAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UserAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import FoundationNetworking
#endif
open class PetstoreClientAPI {
public static var basePath = "http://petstore.swagger.io:80/v2"
public static var basePath = "http://localhost/v2"
public static var customHeaders: [String: String] = [:]
public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/swift5/objcCompatible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Run `pod install`

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AnotherFakeAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeClassnameTags123API

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PetAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StoreAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UserAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import FoundationNetworking
#endif
open class PetstoreClientAPI {
public static var basePath = "http://petstore.swagger.io:80/v2"
public static var basePath = "http://localhost/v2"
public static var customHeaders: [String: String] = [:]
public static var credential: URLCredential?
public static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/swift5/promisekitLibrary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Run `pod install`

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AnotherFakeAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FakeClassnameTags123API

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PetAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StoreAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UserAPI

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

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import FoundationNetworking
#endif
internal class PetstoreClientAPI {
internal static var basePath = "http://petstore.swagger.io:80/v2"
internal static var basePath = "http://localhost/v2"
internal static var customHeaders: [String: String] = [:]
internal static var credential: URLCredential?
internal static var requestBuilderFactory: RequestBuilderFactory = URLSessionRequestBuilderFactory()
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/swift5/resultLibrary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Run `pod install`

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
Loading
Loading