amiibo-service/Sources/Extensions/String+Path.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

11 lines
322 B
Swift

extension String {
enum Path {
static let amiibo = "/api/amiibo/"
static let type = "/api/type"
static let gameSeries = "/api/gameseries"
static let series = "/api/amiiboseries"
static let character = "/api/character"
static let lastUpdated = "/api/lastupdated"
}
}