{{ $docs['title'] }}
{{ $docs['description'] }}
{{ $api['name'] }}
{{ $api['description'] }}
{{
$api['method'] }}
{{ config('app.url') }}{{ $api['path'] }}
請求標頭 (Headers)
@foreach($api['headers'] as $key => $val)
{{
$key }}
@endforeach
{{ $val }}
請求主體 (Parameters)
| 欄位名稱 | 型態 | 說明 |
|---|---|---|
| {{ $name }} @if($param['required'] ?? false) * @endif | {{ $param['type'] }} |
{{ $param['description'] }}
@if(isset($param['example']))
範例:
@endif
{{ is_array($param['example']) ? json_encode($param['example']) : $param['example'] }}
|
請求範例 (Request Body)
{{ json_encode($api['request'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
@if(isset($api['response_parameters']))
@endif
@if(isset($api['notes']))
回應參數說明 (Response Parameters)
| 欄位名稱 | 型態 | 說明 |
|---|---|---|
| {{ $name }} | {{ $param['type'] }} |
{{ $param['description'] }}
@if(isset($param['example']))
範例:
@endif
{{ $param['example'] }}
|
回應範例 (Response Body)
{{ json_encode($api['response'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
實作備註
{{ $api['notes'] }}