Moved the Amiibo API implementation to its own package #2

Merged
javier merged 12 commits from migration/api-work into main 2024-09-14 22:26:39 +00:00
26 changed files with 105 additions and 43 deletions
Showing only changes of commit 72e57185f9 - Show all commits

14
CONTRIBUTORS Normal file
View File

@ -0,0 +1,14 @@
For the purpose of tracking copyright, this is the list of individuals and
organizations who have contributed source code to this Swift package.
For employees of an organization/company where the copyright of work done
by employees of that company is held by the company itself, only the company
needs to be listed here.
## COPYRIGHT HOLDERS
- Röck+Cöde VoF. (all contributors with '@rock-n-code.com')
## PROJECT AUTHORS
- Javier Cicchelli <javier@rock-n-code.com>

View File

@ -1,3 +1,15 @@
# ===----------------------------------------------------------------------===
#
# This source file is part of the AmiiboAPI open source project
#
# Copyright (c) 2024 Röck+Cöde VoF. and the AmiiboAPI project authors
# Licensed under the EUPL 1.2 or later.
#
# See LICENSE for license information
# See CONTRIBUTORS for the list of AmiiboAPI project authors
#
# ===----------------------------------------------------------------------===
# ENVIRONMENT VARIABLES
environment ?= .env
@ -39,4 +51,4 @@ package-update: ## Updates the SPM package dependencies
help: ## Prints the written documentation for all the defined tasks
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
.DEFAULT_GOAL := help

View File

@ -1,5 +1,17 @@
// swift-tools-version: 5.9
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
// Copyright (c) 2024 Röck+Cöde VoF. and the AmiiboAPI project authors
// Licensed under the EUPL 1.2 or later.
//
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===
import PackageDescription
let package = Package(

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
import OpenAPIURLSession

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
import Foundation

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
protocol KeyNameFilter {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
protocol KeyNameModel: Sendable {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
import Foundation
import OpenAPIRuntime

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
public enum AmiiboServiceError: Error {
case badRequest

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
public struct AmiiboFilter {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
public struct AmiiboSeriesFilter: KeyNameFilter {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
public struct AmiiboTypeFilter: KeyNameFilter {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
public struct GameCharacterFilter: KeyNameFilter {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
public struct GameSeriesFilter: KeyNameFilter {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
import Foundation

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
extension Amiibo {
public struct Game: Sendable {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
extension Amiibo {
public struct Platform: Sendable {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
import Foundation

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
extension Amiibo {
public struct Usage: Sendable {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
public struct AmiiboSeries: KeyNameModel {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
public struct AmiiboType: KeyNameModel {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
public struct GameCharacter: KeyNameModel {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
public struct GameSeries: KeyNameModel {

View File

@ -1,4 +1,4 @@
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
//
// This source file is part of the AmiiboAPI open source project
//
@ -8,7 +8,7 @@
// See LICENSE for license information
// See CONTRIBUTORS for the list of AmiiboAPI project authors
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===
import Foundation
import OpenAPIRuntime

View File

@ -1,3 +1,15 @@
# ===----------------------------------------------------------------------===
#
# This source file is part of the AmiiboAPI open source project
#
# Copyright (c) 2024 Röck+Cöde VoF. and the AmiiboAPI project authors
# Licensed under the EUPL 1.2 or later.
#
# See LICENSE for license information
# See CONTRIBUTORS for the list of AmiiboAPI project authors
#
# ===----------------------------------------------------------------------===
generate:
- types
- client

View File

@ -1,3 +1,15 @@
# ===----------------------------------------------------------------------===
#
# This source file is part of the AmiiboAPI open source project
#
# Copyright (c) 2024 Röck+Cöde VoF. and the AmiiboAPI project authors
# Licensed under the EUPL 1.2 or later.
#
# See LICENSE for license information
# See CONTRIBUTORS for the list of AmiiboAPI project authors
#
# ===----------------------------------------------------------------------===
openapi: '3.1.0'
info:
title: Amiibo API service