Skip to content

Commit 2a70150

Browse files
committed
Merge branch 'release/1.0.0'
2 parents 16545b9 + ac7d41b commit 2a70150

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

Example/Example/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
9494
private func testGet(of path: String) {
9595
print("Getting file...\n")
9696

97-
DefaultAPI.callGet(arg: path) { (data, error) in
97+
DefaultAPI.cat(arg: path) { (data, error) in
9898
if let error = error {
9999
fatalError("\(error)")
100100
} else if let data = data {

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
22
- Alamofire (4.5.1)
3-
- IPFSWebService (0.1.0):
3+
- IPFSWebService (0.2.0):
44
- Alamofire (~> 4.5)
55

66
DEPENDENCIES:
@@ -13,7 +13,7 @@ EXTERNAL SOURCES:
1313

1414
SPEC CHECKSUMS:
1515
Alamofire: 2d95912bf4c34f164fdfc335872e8c312acaea4a
16-
IPFSWebService: 0854391521e5f506aa2b716a54fb0cc0a6a357ed
16+
IPFSWebService: 1ea7f5b9165b35984a0bf930505f13776e2d1dae
1717

1818
PODFILE CHECKSUM: 61ed0b4ea744697cba534ae39b8006c4b4575530
1919

Example/Pods/Local Podspecs/IPFSWebService.podspec.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/IPFSWebService/Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

IPFSWebService.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'IPFSWebService'
3-
s.version = '0.2.0'
3+
s.version = '1.0.0'
44
s.summary = 'Defines and versions the HTTP based IPFS interface.'
55
s.description = <<-DESC
66
The API for communication with an IPFS server is defined and versioned by

SwaggerClient/Classes/Swaggers/APIs/DefaultAPI.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,29 +56,29 @@ open class DefaultAPI: APIBase {
5656
}
5757

5858
/**
59-
Download IPFS objects.
59+
Show IPFS object data.
6060

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

7070

7171
/**
72-
Download IPFS objects.
73-
- GET /get
72+
Show IPFS object data.
73+
- GET /cat
7474
- examples: [{output=none}]
7575

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

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

swagger.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
title: IPFSWebService
55
description:
66
This specification defines a minimalist subset of the HTTP API for IPFS.
7-
version: 0.2.0
7+
version: 1.0.0
88

99
host: 127.0.0.1:5001
1010
basePath: /api/v0
@@ -39,11 +39,11 @@ paths:
3939
schema:
4040
$ref: '#/definitions/AddResponse'
4141

42-
/get:
42+
/cat:
4343
get:
4444
summary:
45-
Download IPFS objects.
46-
operationId: get
45+
Show IPFS object data.
46+
operationId: cat
4747
produces:
4848
- text/plain
4949
parameters:

0 commit comments

Comments
 (0)