Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
devyhan committed Dec 15, 2022
1 parent 7a4d92c commit 8063943
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
Binary file not shown.
14 changes: 7 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# Changelog 📝

|Release Version|0.1.1|
|---|---|
|Relative Date|![Relative date](https://img.shields.io/date/1671007936)|
![Relative date](https://img.shields.io/date/1671068209)
|Release|0.1.1|
|:---|:---|
|Added|N/A|
|Fixed|Fix struct the `Router` parameter for get `URLRequest` #5 by @devyhan <br/> Fix the public scope of the `Param` components of `BodyBuilder` #3 by @devyhan|
|Changed|N/A|
|Removed|N/A|

---

|Release Version|0.1.0|
|---|---|
|Relative Date|![Relative date](https://img.shields.io/date/1670996156)|
![Relative date](https://img.shields.io/date/1670996156)
|Release|0.1.0|
|:---|:---|
|Added|N/A|
|Fixed|N/A|
|Changed|N/A|
|Removed|N/A|

---

**EOF**
### *[Currenly Release Info](https://github.com/devyhan/APIRouter/releases)*
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Additionally, it provides a way to track the status of each endpoint and to easi

Similar to Swift Evolution's [Regex builder DSL](https://github.com/apple/swift-evolution/blob/main/proposals/0351-regex-builder.md), URL string literal and a more powerful pattern result builder to help make Swift URL string processing fast and easy and without mistakes. Ultimately, with ***APIRouter***, changes are easy to detect and useful for maintenance.

🤔 *Ask questions you’re wondering about [here](https://github.com/devyhan/APIRouter/discussions/new?category=q-a).*<br/>
💡 *Share ideas [here](https://github.com/devyhan/APIRouter/discussions/new).*

## Installation 📦
- Using [Swift Package Manager](https://swift.org/package-manager)

Expand Down Expand Up @@ -236,13 +239,13 @@ enum APIs: RouterProtocol {
}

// http://api.github.com/orgs/organization/repos
let listOrganizationRepositoriesUrl = APIs.listOrganizationRepositories(organizationName: "organization").request.urlRequest?.url
let listOrganizationRepositoriesUrl = APIs.listOrganizationRepositories(organizationName: "organization").router?.urlRequest?.url

// http://api.github.com/search/repositories?q=apirouter
let searchRepositoriesUrl = APIs.searchRepositories(query: "apirouter").request.urlRequest?.url
let searchRepositoriesUrl = APIs.searchRepositories(query: "apirouter").router?.urlRequest?.url

let repositoryInfo: APIs.RepositoryInfo = .init(name: "Hello-World", description: "This is your first repository", homePage: "https://github.com", private: false, hasIssues: true, hasProjects: true, hasWiki: false)
let request = APIs.createAnOrganizationRepository(organizationName: "SomeOrganization", repositoryInfo: repositoryInfo).request.urlRequest
let request = APIs.createAnOrganizationRepository(organizationName: "SomeOrganization", repositoryInfo: repositoryInfo).router?.urlRequest

URLSession.shared.dataTask(with: request) { data, response, error in
...
Expand Down

0 comments on commit 8063943

Please sign in to comment.