RestfulPropertyKit Documentation Beta

Structure Rest​Query​Metadata

public struct RestQueryMetadata<Parent, Value> 

A representation of the RestQuery metadata.

Properties

url​Components

public let urlComponents: RestURLComponents

The URL components of the requests.

bearer

public let bearer: Bool

Should the bearer token be send as part of the requests.

prop

public let prop: KeyPath<Parent, Value>

The parent type keypath to extract the requested value.

token

public var token: RestBearerToken? 

The bearer token used for authorization.