amiibo-service/Sources/Endpoints/GetTypeEndpoint.swift
Javier Cicchelli e12fce9ddc [Feature] All endpoints (#2)
This PR contains the work done in implementing the endpoints needed for the remote calls: `GetAmiiboEndpoint`, `GetTypeEndpoint`, `GetGameSeriesEndpoint`, `GetSeriesEndpoint`, `GetSeriesEndpoint` and `GetLastUpdatedEndpoint` endpoints definitions. Furthermore, I added the the **SwiftLibs** package as a dependency and also, I defined constants for `String+Scheme`, `String+Host` and the `String+Path` extensions.

Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #2
2023-04-18 20:03:12 +00:00

17 lines
350 B
Swift

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