@extends('layouts.app') @section('title', 'API 사용 현황') @push('styles') @endpush @section('content')
Swagger 기반 API 사용 통계 및 폐기 관리
| 메서드 | 엔드포인트 | 호출 수 | 성공 | 실패 | 평균 응답 | 마지막 호출 | 작업 |
|---|---|---|---|---|---|---|---|
| {{ $api['method'] }} |
{{ $api['endpoint'] }}
@if($api['summary'])
{{ $api['summary'] }}
@endif
|
{{ number_format($api['call_count']) }} | {{ number_format($api['success_count']) }} | {{ number_format($api['error_count']) }} | @if($api['avg_duration_ms']) {{ number_format($api['avg_duration_ms'], 0) }}ms @else - @endif | @if($api['last_called_at']) {{ \Carbon\Carbon::parse($api['last_called_at'])->diffForHumans() }} @else - @endif | @if(!$api['deprecation']) @else {{ $api['deprecation']->status_label }} @endif |
| 사용된 API가 없습니다. | |||||||
| 메서드 | 엔드포인트 | 태그 | 상태 | 작업 |
|---|---|---|---|---|
| {{ $api['method'] }} |
{{ $api['endpoint'] }}
@if($api['summary'])
{{ $api['summary'] }}
@endif
|
@foreach($api['tags'] ?? [] as $tag) {{ $tag }} @endforeach | @if($api['deprecation']) {{ $api['deprecation']->status_label }} @else - @endif | @if(!$api['deprecation']) @endif |
| 미사용 API가 없습니다. | ||||
| 메서드 | 엔드포인트 | 상태 | 사유 | 예정일 | 등록자 | 등록일 | 작업 |
|---|---|---|---|---|---|---|---|
| {{ $dep->method }} |
{{ $dep->endpoint }}
|
{{ $dep->reason ?? '-' }} | {{ $dep->scheduled_date?->format('Y-m-d') ?? '-' }} | {{ $dep->creator?->name ?? '-' }} | {{ $dep->created_at->format('Y-m-d') }} |
|
|
| 폐기 후보가 없습니다. | |||||||
최근 30일 API 호출 추이
| 날짜 | 호출 수 | 고유 엔드포인트 |
|---|---|---|
| {{ $day->date }} | {{ number_format($day->call_count) }} | {{ $day->unique_endpoints }} |
| 데이터가 없습니다. | ||