amiibo-service/Sources/Endpoints/GetTypeEndpoint.swift

24 lines
507 B
Swift
Raw Normal View History

import Communications
import Foundation
struct GetTypeEndpoint: Endpoint {
// MARK: Properties
let scheme: String = .Scheme.https
let host: String = .Host.amiiboApi
let port: Int? = nil
let path: String = .Path.type
let parameters: Parameters
let method: HTTPRequestMethod = .get
let headers: [String : String] = [:]
let body: Data? = nil
// MARK: Initialisers
init(parameters: Parameters) {
self.parameters = parameters
}
}