Skip to content

Commit 62f7cdf

Browse files
Merge pull request #51 from richardschneider/big-rename
Big rename
2 parents 4292e5c + 41f94e6 commit 62f7cdf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+248
-243
lines changed

IpfsApi.sln renamed to IpfsHttpClient.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1313
EndProject
1414
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Documentation", "doc\Documentation.csproj", "{F3A32EA9-0B2F-46A3-B47A-33B4C04BD423}"
1515
EndProject
16-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IpfsApi", "src\IpfsApi.csproj", "{F3C81C57-C283-4E07-B765-DEABCFB22136}"
16+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IpfsHttpClient", "src\IpfsHttpClient.csproj", "{F3C81C57-C283-4E07-B765-DEABCFB22136}"
1717
EndProject
18-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IpfsApiTests", "test\IpfsApiTests.csproj", "{B459FBC7-4A28-4170-AD83-7348A403407F}"
18+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IpfsHttpClientTests", "test\IpfsHttpClientTests.csproj", "{B459FBC7-4A28-4170-AD83-7348A403407F}"
1919
EndProject
2020
Global
2121
GlobalSection(SolutionConfigurationPlatforms) = preSolution

README.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# net-ipfs-api
1+
# net-ipfs-http-client
22

33
[![build status](https://ci.appveyor.com/api/projects/status/github/richardschneider/net-ipfs-api?branch=master&svg=true)](https://ci.appveyor.com/project/richardschneider/net-ipfs-api)
4-
[![Coverage Status](https://coveralls.io/repos/github/richardschneider/net-ipfs-api/badge.svg?branch=master)](https://coveralls.io/github/richardschneider/net-ipfs-api?branch=master)
5-
[![Version](https://img.shields.io/nuget/v/Ipfs.Api.svg)](https://www.nuget.org/packages/Ipfs.Api)
6-
[![docs](https://cdn.rawgit.com/richardschneider/net-ipfs-api/master/doc/images/docs-latest-green.svg)](https://richardschneider.github.io/net-ipfs-api/articles/client.html)
4+
[![Coverage Status](https://coveralls.io/repos/github/richardschneider/net-ipfs-http-client/badge.svg?branch=master)](https://coveralls.io/github/richardschneider/net-ipfs-http-client?branch=master)
5+
[![Version](https://img.shields.io/nuget/v/Ipfs.Http.Client.svg)](https://www.nuget.org/packages/Ipfs.Http.Client)
6+
[![docs](https://img.shields.io/badge/docs-latest-green.svg)](https://richardschneider.github.io/net-ipfs-http-client/articles/client.html)
77

88

9-
A .Net client library for the IPFS HTTP API, implemented in C#.
10-
More information, including the Class Reference, is on the [Project](https://richardschneider.github.io/net-ipfs-api/) web site.
9+
A .Net client library for managing IPFS using the HTTP API protocol.
10+
More information, including the Class Reference, is on the [Project](https://richardschneider.github.io/net-ipfs-http-client/) web site.
1111

1212
![](https://ipfs.io/ipfs/QmQJ68PFMDdAsgCZvA1UVzzn18asVcf7HVvCDgpjiSCAse)
1313

1414
## Features
1515

1616
- Targets .NET Framework 4.5, .NET Standard 1.4 and .NET Standard 2.0
17-
- [Asynchronous I/O](https://richardschneider.github.io/net-ipfs-api/articles/async.html) to an IPFS server
18-
- Supports [cancellation](https://richardschneider.github.io/net-ipfs-api/articles/cancellation.html) of all requests to the IPFS Server
17+
- [Asynchronous I/O](https://richardschneider.github.io/net-ipfs-http-client/articles/async.html) to an IPFS server
18+
- Supports [cancellation](https://richardschneider.github.io/net-ipfs-http-client/articles/cancellation.html) of all requests to the IPFS Server
1919
- Requests that all responses are compressed
20-
- Comprehensive [documentation](https://richardschneider.github.io/net-ipfs-api/articles/client.html)
20+
- Comprehensive [documentation](https://richardschneider.github.io/net-ipfs-http-client/articles/client.html)
2121
- C# style access to the [ipfs core interface](https://richardschneider.github.io/net-ipfs-core/api/Ipfs.CoreApi.html)
2222
- [Bitswap API](https://richardschneider.github.io/net-ipfs-core/api/Ipfs.CoreApi.IBitswapApi.html)
2323
- [Block API](https://richardschneider.github.io/net-ipfs-core/api/Ipfs.CoreApi.IBlockApi.html)
@@ -35,17 +35,22 @@ More information, including the Class Reference, is on the [Project](https://ric
3535

3636
## Getting started
3737

38-
Published releases of IPFS API are available on [NuGet](https://www.nuget.org/packages/ipfs.api/). To install, run the following command in the [Package Manager Console](https://docs.nuget.org/docs/start-here/using-the-package-manager-console).
38+
Published releases of IPFS API are available on [NuGet](https://www.nuget.org/packages/ipfs.http.client/). To install, run the following command in the [Package Manager Console](https://docs.nuget.org/docs/start-here/using-the-package-manager-console).
3939

40-
PM> Install-Package Ipfs.Api
40+
PM> Install-Package Ipfs.Http.Client
4141

42-
For the latest build or older non-released builds see [Continuous Integration](https://github.com/richardschneider/net-ipfs-core/wiki/Continuous-Integration).
42+
Or using [dotnet](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet?tabs=netcore21)
43+
44+
> dotnet add package Ipfs.Http.Client
4345

4446
## IpfsClient
4547

46-
Every IPFS Api is a property of the [IpfsClient](https://richardschneider.github.io/net-ipfs-api/api/Ipfs.Api.IpfsClient.html). The following example reads a text file
48+
Every feature of IPFS is a property of the [IpfsClient](https://richardschneider.github.io/net-ipfs-http-client/api/Ipfs.Http.IpfsClient.html). The following example
49+
uses `FileSystem` to read a text file
4750

4851
```csharp
52+
using Ipfs.Http;
53+
4954
var ipfs = new IpfsClient();
5055

5156
const string filename = "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about";
@@ -55,4 +60,4 @@ string text = await ipfs.FileSystem.ReadAllTextAsync(filename);
5560
# License
5661
Copyright © 2015-2018 Richard Schneider ([email protected])
5762

58-
The IPFS API library is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php "Read more about the MIT license form") license. Refer to the [LICENSE](https://github.com/richardschneider/net-ipfs-api/blob/master/LICENSE) file for more information.
63+
The IPFS API library is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php "Read more about the MIT license form") license. Refer to the [LICENSE](https://github.com/richardschneider/net-ipfs-http-client/blob/master/LICENSE) file for more information.

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ build_script:
5555
- dotnet pack -c %CONFIGURATION% --no-build --no-restore -p:Version=%GitVersion_MajorMinorPatch% -p:AssemblyVersion=%GitVersion_MajorMinorPatch%
5656

5757
after_build:
58-
- cmd: appveyor PushArtifact "src\bin\%CONFIGURATION%\Ipfs.Api.%GitVersion_MajorMinorPatch%.nupkg"
58+
- cmd: appveyor PushArtifact "src\bin\%CONFIGURATION%\Ipfs.Http.Client.%GitVersion_MajorMinorPatch%.nupkg"
5959
# Build documentation in doc\_site
6060
# See https://github.com/dotnet/docfx/issues/1752#issuecomment-308909959
6161
- set MSBUILD_EXE_PATH=C:\Program Files\dotnet\sdk\2.0.0\MSBuild.dll
6262
- copy doc\MSBuild.dll.config "C:\Program Files\dotnet\sdk\2.0.0\MSBuild.dll.config" /Y
63-
- docfx doc\docfx.json
63+
- docfx doc\docfx.json --logLevel Warning
6464
- 7z a -tzip docs.zip doc\_site
6565
- appveyor PushArtifact docs.zip
6666
- if defined git_token gh-pages -d doc\_site -m "new docs %GitVersion_FullSemVer%"
@@ -71,7 +71,7 @@ test_script:
7171
after_test:
7272
# Generate coverage report
7373
- packages\OpenCover.4.6.519\tools\OpenCover.Console.exe
74-
-register:user -filter:"+[Ipfs.Api*]* -[*Tests]*"
74+
-register:user -filter:"+[Ipfs.Http*]* -[*Tests]*"
7575
-target:"c:\Program Files\dotnet\dotnet.exe"
7676
-targetargs:"test -c Release --no-build --no-restore --framework netcoreapp2.0 test"
7777
-output:coverage.xml

doc/articles/async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ the token is cancelled,
2525
a [TaskCanceledException](xref:System.Threading.Tasks.TaskCanceledException)
2626
will be `thrown`.
2727

28-
Here's a contrived example ([unit test](https://github.com/richardschneider/net-ipfs-api/blob/cancellation/test/CoreApi/CancellationTest.cs))
28+
Here's a contrived example ([unit test](https://github.com/richardschneider/net-ipfs-http-client/blob/cancellation/test/CoreApi/CancellationTest.cs))
2929
that forces the getting of info on the local IPFS server to be cancelled
3030

3131
```csharp

doc/articles/client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
IPFS is a distributed peer to peer system. There is no central server! Typically, each machine (peer) runs
44
a [daemon](daemon.md) that communicates with other peers.
55

6-
The [IpfsClient](xref:Ipfs.Api.IpfsClient) provides a simple way for your program to access the daemon
6+
The [IpfsClient](xref:Ipfs.Http.IpfsClient) provides a simple way for your program to access the daemon
77
via the [IPFS HTTP API](https://docs.ipfs.io/reference/api/http/) protocol. The client
88
should be used as a shared object in your program, much like [HttpClient](xref:System.Net.Http.HttpClient). It is
99
thread safe (re-entrant) and conserves sockets and TCP connections when only one instance is used.

doc/articles/envvars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ are used to control the behaviour of the library. They override the default va
55

66
| Name | Description |
77
| --- | --- |
8-
| IpfsHttpUrl | The [default URL](xref:Ipfs.Api.IpfsClient.DefaultApiUri) to the IPFS HTTP API [daemon](daemon.md).
8+
| IpfsHttpUrl | The [default URL](xref:Ipfs.Http.IpfsClient.DefaultApiUri) to the IPFS HTTP API [daemon](daemon.md).

doc/articles/intro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# IPFS API
1+
# IPFS HTTP Client
22

33
A .Net client library for the IPFS HTTP API, implemented in C#. It allows you to access the features of [IPFS](https://ipfs.io/).
44

5-
The source code is on [GitHub](https://github.com/richardschneider/net-ipfs-api) and the
6-
package is published on [NuGet](https://www.nuget.org/packages/Ipfs.Api).
5+
The source code is on [GitHub](https://github.com/richardschneider/net-ipfs-http-client) and the
6+
package is published on [NuGet](https://www.nuget.org/packages/ipfs.http.client).
77

88
![](https://ipfs.io/ipfs/QmQJ68PFMDdAsgCZvA1UVzzn18asVcf7HVvCDgpjiSCAse)

doc/articles/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
- name: IPFS daemon
1212
href: daemon.md
1313
- name: Class Reference
14-
href: ../api/Ipfs.Api.yml
14+
href: ../api/Ipfs.Http.yml

doc/docfx.json

Lines changed: 85 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,86 @@
1-
{
2-
"metadata": [
3-
{
4-
"src": [
5-
{
6-
"files": [
7-
"src/**.csproj"
8-
],
9-
"exclude": [
10-
"**/obj/**",
11-
"**/bin/**",
12-
"_site/**"
13-
],
14-
"src": ".."
15-
}
16-
],
17-
"properties": {
18-
"TargetFramework": "net45"
19-
},
20-
21-
"dest": "api"
22-
}
23-
],
24-
"build": {
25-
"content": [
26-
{
27-
"files": [
28-
"api/**.yml",
29-
"api/index.md"
30-
]
31-
},
32-
{
33-
"files": [
34-
"articles/**.md",
35-
"articles/**/toc.yml",
36-
"toc.yml",
37-
"*.md"
38-
],
39-
"exclude": [
40-
"obj/**",
41-
"_site/**"
42-
]
43-
}
44-
],
45-
"resource": [
46-
{
47-
"files": [
48-
"images/**"
49-
],
50-
"exclude": [
51-
"obj/**",
52-
"_site/**"
53-
]
54-
}
55-
],
56-
"overwrite": [
57-
{
58-
"files": [
59-
"apidoc/**.md"
60-
],
61-
"exclude": [
62-
"obj/**",
63-
"_site/**"
64-
]
65-
}
66-
],
67-
"xref": [
68-
"../packages/msdn.4.5.2.0.1.0-alpha-1611021200/content/msdn.4.5.2.zip",
69-
"https://richardschneider.github.io/net-ipfs-core/xrefmap.yml"
70-
],
71-
"globalMetadata" : {
72-
"_appTitle": "IPFS API documentation",
73-
"_appFooter": "Generated by DocFX",
74-
"_appFaviconPath": "images/ipfs-favicon.ico",
75-
"_appLogoPath": "images/ipfs-logo.svg"
76-
},
77-
"dest": "_site",
78-
"globalMetadataFiles": [],
79-
"fileMetadataFiles": [],
80-
"template": [
81-
"default"
82-
],
83-
"postProcessors": [],
84-
"noLangKeyword": false
85-
}
1+
{
2+
"metadata": [
3+
{
4+
"src": [
5+
{
6+
"files": [
7+
"src/**.csproj"
8+
],
9+
"exclude": [
10+
"**/obj/**",
11+
"**/bin/**",
12+
"_site/**"
13+
],
14+
"src": ".."
15+
}
16+
],
17+
"properties": {
18+
"TargetFramework": "net45"
19+
},
20+
21+
"dest": "api"
22+
}
23+
],
24+
"build": {
25+
"content": [
26+
{
27+
"files": [
28+
"api/**.yml",
29+
"api/index.md"
30+
]
31+
},
32+
{
33+
"files": [
34+
"articles/**.md",
35+
"articles/**/toc.yml",
36+
"toc.yml",
37+
"*.md"
38+
],
39+
"exclude": [
40+
"obj/**",
41+
"_site/**"
42+
]
43+
}
44+
],
45+
"resource": [
46+
{
47+
"files": [
48+
"images/**"
49+
],
50+
"exclude": [
51+
"obj/**",
52+
"_site/**"
53+
]
54+
}
55+
],
56+
"overwrite": [
57+
{
58+
"files": [
59+
"apidoc/**.md"
60+
],
61+
"exclude": [
62+
"obj/**",
63+
"_site/**"
64+
]
65+
}
66+
],
67+
"xref": [
68+
"../packages/msdn.4.5.2.0.1.0-alpha-1611021200/content/msdn.4.5.2.zip",
69+
"https://richardschneider.github.io/net-ipfs-core/xrefmap.yml"
70+
],
71+
"globalMetadata" : {
72+
"_appTitle": "IPFS HTP Client documentation",
73+
"_appFooter": "Generated by DocFX",
74+
"_appFaviconPath": "images/ipfs-favicon.ico",
75+
"_appLogoPath": "images/ipfs-logo.svg"
76+
},
77+
"dest": "_site",
78+
"globalMetadataFiles": [],
79+
"fileMetadataFiles": [],
80+
"template": [
81+
"default"
82+
],
83+
"postProcessors": [],
84+
"noLangKeyword": false
85+
}
8686
}

doc/index.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# IPFS API
2-
3-
A .Net client library to access the IPFS, it implements the [IPFS Core API](https://github.com/ipfs/interface-ipfs-core).
4-
The source code is on [GitHub](https://github.com/richardschneider/net-ipfs-api) and the
5-
package is published on [NuGet](https://www.nuget.org/packages/Ipfs.Api).
6-
7-
The interplanetary file system is the permanent web. It is a new hypermedia distribution protocol, addressed by content and identities. IPFS enables the creation of completely distributed applications. It aims to make the web faster, safer, and more open.
8-
9-
- [Articles](articles/intro.md) on using the API
10-
- [API Documentation](api/Ipfs.Api.yml) describes the core objects in detail
11-
12-
[![IPFS Core API](https://github.com/ipfs/interface-ipfs-core/raw/master/img/badge.png)](https://github.com/ipfs/interface-ipfs-core)
1+
# IPFS HTTP Client
2+
3+
A .Net client library to access the IPFS, it implements the [IPFS Core API](https://github.com/ipfs/interface-ipfs-core).
4+
The source code is on [GitHub](https://github.com/richardschneider/net-ipfs-http-client) and the
5+
package is published on [NuGet](https://www.nuget.org/packages/Ipfs.Http.Client).
6+
7+
The interplanetary file system is the permanent web. It is a new hypermedia distribution protocol, addressed by content and identities. IPFS enables the creation of completely distributed applications. It aims to make the web faster, safer, and more open.
8+
9+
- [Articles](articles/intro.md) on using the API
10+
- [API Documentation](api/Ipfs.Http.yml) describes the core objects in detail
11+
12+
[![IPFS Core API](https://github.com/ipfs/interface-ipfs-core/raw/master/img/badge.png)](https://github.com/ipfs/interface-ipfs-core)

0 commit comments

Comments
 (0)