From dee2c5b4cef858466a3da6dd64e81eecca9455c4 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Tue, 18 Apr 2023 21:50:34 +0200 Subject: [PATCH] Implemented the GetLastUpdatedEndpoint endpoint. --- Sources/Endpoints/GetLastUpdatedEndpoint.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Sources/Endpoints/GetLastUpdatedEndpoint.swift diff --git a/Sources/Endpoints/GetLastUpdatedEndpoint.swift b/Sources/Endpoints/GetLastUpdatedEndpoint.swift new file mode 100644 index 0000000..1d7d0a2 --- /dev/null +++ b/Sources/Endpoints/GetLastUpdatedEndpoint.swift @@ -0,0 +1,16 @@ +import Communications +import Foundation + +struct GetLastUpdatedEndpoint: Endpoint { + + // MARK: Properties + + let scheme: String = .Scheme.https + let host: String = .Host.amiiboApi + let port: Int? + let path: String = .Path.lastUpdated + let method: HTTPRequestMethod = .get + let headers: [String : String] = [:] + let body: Data? + +}