You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/WordpressReader/WordpressRequest.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ public extension WordpressRequest {
64
64
publicextensionWordpressRequest<WordpressPost>{
65
65
/// Creates a Wordpress request for Posts.
66
66
///
67
-
/// A custom URL session, start page and max pages can all be set after creation. A fields query item will be ignored and replaced with fields based on the parameter labels for WordpressPost.
67
+
/// A custom URL session, start page and max pages can all be set after creation. A fields query item will be ignored and replaced with fields based on the parameter labels for ``WordpressPost``.
68
68
/// - Parameter queryItems: Query items used in this request. (default is an empty array)
@@ -75,7 +75,7 @@ public extension WordpressRequest<WordpressPost> {
75
75
publicextensionWordpressRequest<WordpressPage>{
76
76
/// Creates a Wordpress request for Pages.
77
77
///
78
-
/// A custom URL session, start page and max pages can all be set after creation. A fields query item will be ignored and replaced with fields based on the parameter labels for WordpressPage.
78
+
/// A custom URL session, start page and max pages can all be set after creation. A fields query item will be ignored and replaced with fields based on the parameter labels for ``WordpressPage``.
79
79
/// - Parameter queryItems: Query items used in this request. (default is an empty array)
/// A custom URL session, start page and max pages can all be set after creation. A fields query item will be ignored and replaced with fields based on the parameter labels for WordpressCategory.
89
+
/// A custom URL session, start page and max pages can all be set after creation. A fields query item will be ignored and replaced with fields based on the parameter labels for ``WordpressCategory``.
90
90
/// - Parameter queryItems: Query items used in this request. (default is an empty array)
91
91
/// - Returns: A Wordpress request for Categories.
@@ -97,7 +97,7 @@ public extension WordpressRequest<WordpressCategory> {
97
97
publicextensionWordpressRequest<WordpressTag>{
98
98
/// Creates a Wordpress request for Tags.
99
99
///
100
-
/// A custom URL session, start page and max pages can all be set after creation. A fields query item will be ignored and replaced with fields based on the parameter labels for WordpressTag.
100
+
/// A custom URL session, start page and max pages can all be set after creation. A fields query item will be ignored and replaced with fields based on the parameter labels for ``WordpressTag``.
101
101
/// - Parameter queryItems: Query items used in this request. (default is an empty array)
/// - urlSession: URL session to use for this request.
26
26
/// - type: Type of Wordpress Item.
27
-
/// - id: Unique identifier for Wordpress Item.
28
-
/// - Returns: A Wordpress item matching a supplied unique identifier.
29
-
/// - Throws: WordpressReaderError if there is a bad response or DecodingError if the type cannot be decoded.
27
+
/// - id: Unique identifier for ``WordpressItem``.
28
+
/// - Returns: A ``WordpressItem`` matching a supplied unique identifier.
29
+
/// - Throws: ``WordpressReaderError`` if there is a bad response or DecodingError if the type cannot be decoded.
30
30
nonisolatedpublicfunc fetchById<T:WordpressItem>(
31
31
urlSession:URLSession=.shared,
32
32
_ type:T.Type,
@@ -43,8 +43,8 @@ extension WordpressSite {
43
43
///
44
44
/// The throwing asynchronous stream returns batches that correspond to pages from the Wordpress API and will finish when all batches have completed. They may throw a WordpressReaderError if there are URL errors, badly formatted query items, or a bad response or a DecodingError if the JSON doesn't match the Wordpress item.
45
45
/// - Parameter request: Wordpress request used to retrieve Wordpress items.
46
-
/// - Returns: An asynchronous throwing stream of arrays of Wordpress items.
47
-
/// - Throws: WordpressReaderError, or DecodingError.
46
+
/// - Returns: An asynchronous throwing stream of arrays of ``WordpressItem``.
47
+
/// - Throws: ``WordpressReaderError``, or DecodingError.
48
48
nonisolatedpublicfunc stream<T:WordpressItem>(
49
49
_ request:WordpressRequest<T>
50
50
)asyncthrows->AsyncThrowingStream<[T],Error>{
@@ -56,8 +56,8 @@ extension WordpressSite {
56
56
///
57
57
/// Use itemStream() if you want to retrieve item batches in an asynchronous stream.
58
58
/// - Parameter request: Wordpress request used to retrieve Wordpress items.
59
-
/// - Returns: An array of Wordpress items asynchronously.
60
-
/// - Throws: WordpressReaderError, or DecodingError.
59
+
/// - Returns: An array of ``WordpressItem`` asynchronously.
60
+
/// - Throws: ``WordpressReaderError``, or DecodingError.
61
61
nonisolatedpublicfunc fetch<T:WordpressItem>(
62
62
_ request:WordpressRequest<T>
63
63
)asyncthrows->[T]{
@@ -69,8 +69,8 @@ extension WordpressSite {
69
69
///
70
70
/// Use itemStream() if you want to retrieve item batches in an asynchronous stream.
71
71
/// - Parameter type: The type of Wordpress item to retrieve using a default request.
72
-
/// - Returns: An array of Wordpress items asynchronously.
73
-
/// - Throws: WordpressReaderError, or DecodingError.
72
+
/// - Returns: An array of ``WordpressItem`` asynchronously.
73
+
/// - Throws: ``WordpressReaderError``, or DecodingError.
0 commit comments