@extends('layouts.dash') @section('title', $service->exists ? 'Edit API' : 'Add New API') @section('content') @php $icons = ['fa-plug','fa-gamepad','fa-id-card','fa-mobile-screen','fa-money-bill-transfer','fa-user-check','fa-image','fa-message','fa-location-dot','fa-wallet','fa-shield-halved','fa-bolt','fa-robot','fa-credit-card','fa-qrcode']; $pRows = $service->exists ? $service->paramList() : []; $hdrLines = implode("\n", $service->headerList()); $exampleParams = $service->docs_example_params ?? []; @endphp

{{ $service->exists ? 'Edit API' : 'Add New API' }}

Connect any provider API in 1 minute — docs auto-generate code samples.

@if($service->exists)Price Management@endif @if($service->exists)Test@endif Back
Provider URL template: use {param_name} for user inputs and {provider_key} for the key. Example:
https://provider.com/api?uid={uid}&key={provider_key}
Public endpoint becomes: {{ url('/api') }}/slug?api_key=KEY&... — Docs auto-generate cURL/PHP/JS/Python/Node samples from your params & examples.
@csrf @if($service->exists) @method('PATCH') @endif
Basic Info
Endpoint: /api/slug
@foreach($icons as $ic)
This appears on API cards, the homepage, and the documentation header.
Write one reason/use case per line. These will appear as a clear “What this API can do” list in public docs.
Users can buy any quantity at this price.
External API / File Manager Connection
@if($service->exists)Test Connection@endif

Connect this public API to a separate file-manager API file, subdomain endpoint, or any external provider. Each API keeps its own connection profile.

This label is saved with the API so you can identify where the endpoint is hosted. It does not change your existing public /api/slug URL.
Examples: https://panel.example.com/api/uid.php?uid={uid} or https://api.example.com/v1/player/{uid}. Use {param_name} and {provider_key} placeholders.
Documentation — Marketplace-Style

Rich docs shown on API page & docs. Code samples auto-generate from params + examples — no need to hand-write.

Shown on service page & docs. Supports markdown-like: **bold**, `code`, line breaks. Auto code samples appear below.
Example: 401|Invalid API key|The X-API-KEY header is missing or JSON array. Defaults auto-filled if empty.
Input Parameters

These become {name} placeholders + docs table + test fields + code sample values. Add an Example value per param — code samples use it.

Cancel
@push('scripts') @endpush @endsection