-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from futuredapp/feature/docc-documentation
DocC documentation
- Loading branch information
Showing
24 changed files
with
173 additions
and
110 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// swift-tools-version:5.5 | ||
// This manifest is needed to properly generate DocC documentation. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "FTAPIKit", | ||
platforms: [.iOS(.v12), .macOS(.v10_10), .tvOS(.v12), .watchOS(.v5)], | ||
products: [ | ||
.library( | ||
name: "FTAPIKit", | ||
targets: ["FTAPIKit"]) | ||
], | ||
targets: [ | ||
.target( | ||
name: "FTAPIKit", | ||
dependencies: []), | ||
.testTarget( | ||
name: "FTAPIKitTests", | ||
dependencies: ["FTAPIKit"]) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# ``FTAPIKit`` | ||
|
||
Declarative, generic and protocol-oriented REST API framework using `URLSession` and `Codable` | ||
|
||
## Overview | ||
|
||
Declarative and generic REST API framework using `Codable`. | ||
With standard implementation using `URLSesssion` and JSON encoder/decoder. | ||
Easily extensible for your asynchronous framework or networking stack. | ||
|
||
![Tree with a API Client root element. Its branches are servers. Each server branch has some endpoint branches.](Architecture) | ||
|
||
## Topics | ||
|
||
### Server | ||
|
||
- ``Server`` | ||
- ``URLServer`` | ||
|
||
### Endpoint | ||
|
||
- ``Endpoint`` | ||
- ``DataEndpoint`` | ||
- ``UploadEndpoint`` | ||
- ``MultipartEndpoint`` | ||
- ``URLEncodedEndpoint`` | ||
- ``EncodableEndpoint`` | ||
- ``ResponseEndpoint`` | ||
- ``RequestEndpoint`` | ||
- ``RequestResponseEndpoint`` | ||
|
||
### Endpoint configuration | ||
|
||
- ``HTTPMethod`` | ||
- ``URLQuery`` | ||
- ``MultipartBodyPart`` | ||
|
||
### Encoding and decoding | ||
|
||
- ``Encoding`` | ||
- ``JSONEncoding`` | ||
- ``Decoding`` | ||
- ``JSONDecoding`` | ||
- ``URLRequestEncoding`` | ||
|
||
### Error handling | ||
|
||
- ``APIError`` | ||
- ``APIErrorStandard`` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Oops, something went wrong.