From 6b1384cf28216c6c2a168da5fadffef9bfc6cef3 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Tue, 18 Apr 2023 21:49:15 +0200 Subject: [PATCH] Implemented the GetTypeEndpoint endpoint. --- Sources/Endpoints/GetTypeEndpoint.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Sources/Endpoints/GetTypeEndpoint.swift diff --git a/Sources/Endpoints/GetTypeEndpoint.swift b/Sources/Endpoints/GetTypeEndpoint.swift new file mode 100644 index 0000000..677f0d2 --- /dev/null +++ b/Sources/Endpoints/GetTypeEndpoint.swift @@ -0,0 +1,16 @@ +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? + +}