Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
connorpower committed Nov 4, 2017
2 parents 16545b9 + ac7d41b commit 2a70150
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Example/Example/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
private func testGet(of path: String) {
print("Getting file...\n")

DefaultAPI.callGet(arg: path) { (data, error) in
DefaultAPI.cat(arg: path) { (data, error) in
if let error = error {
fatalError("\(error)")
} else if let data = data {
Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- Alamofire (4.5.1)
- IPFSWebService (0.1.0):
- IPFSWebService (0.2.0):
- Alamofire (~> 4.5)

DEPENDENCIES:
Expand All @@ -13,7 +13,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Alamofire: 2d95912bf4c34f164fdfc335872e8c312acaea4a
IPFSWebService: 0854391521e5f506aa2b716a54fb0cc0a6a357ed
IPFSWebService: 1ea7f5b9165b35984a0bf930505f13776e2d1dae

PODFILE CHECKSUM: 61ed0b4ea744697cba534ae39b8006c4b4575530

Expand Down
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/IPFSWebService.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion IPFSWebService.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'IPFSWebService'
s.version = '0.2.0'
s.version = '1.0.0'
s.summary = 'Defines and versions the HTTP based IPFS interface.'
s.description = <<-DESC
The API for communication with an IPFS server is defined and versioned by
Expand Down
14 changes: 7 additions & 7 deletions SwaggerClient/Classes/Swaggers/APIs/DefaultAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,29 +56,29 @@ open class DefaultAPI: APIBase {
}

/**
Download IPFS objects.
Show IPFS object data.

- parameter arg: (query) The path to the IPFS object(s) to be outputted.
- parameter completion: completion handler to receive the data and the error objects
*/
open class func callGet(arg: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) {
callGetWithRequestBuilder(arg: arg).execute { (response, error) -> Void in
open class func cat(arg: String, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) {
catWithRequestBuilder(arg: arg).execute { (response, error) -> Void in
completion(response?.body, error);
}
}


/**
Download IPFS objects.
- GET /get
Show IPFS object data.
- GET /cat
- examples: [{output=none}]

- parameter arg: (query) The path to the IPFS object(s) to be outputted.

- returns: RequestBuilder<Data>
*/
open class func callGetWithRequestBuilder(arg: String) -> RequestBuilder<Data> {
let path = "/get"
open class func catWithRequestBuilder(arg: String) -> RequestBuilder<Data> {
let path = "/cat"
let URLString = SwaggerClientAPI.basePath + path
let parameters: [String:Any]? = nil

Expand Down
8 changes: 4 additions & 4 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ info:
title: IPFSWebService
description:
This specification defines a minimalist subset of the HTTP API for IPFS.
version: 0.2.0
version: 1.0.0

host: 127.0.0.1:5001
basePath: /api/v0
Expand Down Expand Up @@ -39,11 +39,11 @@ paths:
schema:
$ref: '#/definitions/AddResponse'

/get:
/cat:
get:
summary:
Download IPFS objects.
operationId: get
Show IPFS object data.
operationId: cat
produces:
- text/plain
parameters:
Expand Down

0 comments on commit 2a70150

Please sign in to comment.