package com.example.myapp;
import com.unkey.unkeysdk.dto.GetAPIResponse;
@RestController
public class APIController {
    private static IAPIService apiService = new APIService();
    @GetMapping("/keys")
    public ListKeysResponse listKeys(
            @RequestParam String apiId,
            @RequestBody(required = false) ListKeysRequest listKeyRquest,
            @RequestHeader("Authorization") String authToken) {
        // Delegate the creation of the key to the IAPIService from the SDK
        return iapiService.listKeys(listKeyRquest, apiId, authToken);
    }
}