API Definitions
{{ $apis->count() }} of {{ $apis->count() }} API{{ $apis->count() !== 1 ? 's' : '' }}
| Name | Data Source | View | Endpoint | Status | Actions |
|---|---|---|---|---|---|
|
{{ $api->name }} {{ $api->slug }} |
{{-- Data Source --}}
{{ optional($api->dataSource)->name ?? '—' }} | {{-- View --}}{{ $api->dataset_id }} | {{-- Endpoint --}}
/api/generated/{{ $api->slug }}
|
{{-- Status --}}
@php
$statusConfig = match(true) {
$isRevoked => ['bg-gray-100', 'text-gray-600', 'bg-gray-400', 'Revoked'],
$isBlocked => ['bg-orange-100', 'text-orange-700', 'bg-orange-500', 'Blocked'],
$isFailed => ['bg-red-100', 'text-red-700', 'bg-red-500', 'Failed'],
$isPublished => ['bg-green-100', 'text-green-800', 'bg-green-500', 'Published'],
default => ['bg-yellow-100', 'text-yellow-800', 'bg-yellow-500', ucfirst($api->status)],
};
@endphp
{{ $statusConfig[3] }}
@if($isFailed && $api->last_error)
{{ Str::limit($api->last_error, 60) }} @endif @if($api->last_checked_at)Checked: {{ $api->last_checked_at->diffForHumans() }} @endif |
{{-- Actions --}}
{{-- View --}}
View
{{-- Publish (show if failed or draft) --}}
@if(!$isPublished && !$isRevoked)
@endif
{{-- Block / Unblock --}}
@if(!$isRevoked)
@if(!$isBlocked)
@else
@endif
@endif
{{-- Revoke --}}
@if(!$isRevoked)
@endif
{{-- Delete --}}
|
No APIs match this filter.