+
+

{{ $docs['title'] }}

+

+ {{ $docs['description'] }} +

+
+ + @foreach($docs['categories'] as $category) + @foreach($category['apis'] as $api) +
+
+ +

{{ $api['name'] }}

+

{{ $api['description'] }}

+ + +
+
+
+ {{ + $api['method'] }} + {{ config('app.url') }}{{ $api['path'] }} +
+ +
+
+

+ + + + 請求標頭 (Headers) +

+
+ @foreach($api['headers'] as $key => $val) +
+ {{ + $key }} +
+ + {{ $val }} + +
+
+ @endforeach +
+
+
+ + +
+

請求主體 (Parameters)

+
+ + + + + + + + + + @foreach($api['parameters'] as $name => $param) + + + + + + @endforeach + +
欄位名稱型態說明
+ {{ $name }} + @if($param['required'] ?? false) + * + @endif + + + {{ $param['type'] }} + + + {{ $param['description'] }} + @if(isset($param['example'])) +
+ 範例: + {{ is_array($param['example']) ? json_encode($param['example']) : $param['example'] }} +
+ @endif +
+
+
+ + +
+ +
+

請求範例 (Request Body)

+
{{ json_encode($api['request'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
+
+ + +
+ @if(isset($api['response_parameters'])) +

回應參數說明 (Response Parameters)

+
+ + + + + + + + + + @foreach($api['response_parameters'] as $name => $param) + + + + + + @endforeach + +
欄位名稱型態說明
{{ $name }} + + {{ $param['type'] }} + + + {{ $param['description'] }} + @if(isset($param['example'])) +
+ 範例: + {{ $param['example'] }} +
+ @endif +
+
+ @endif + +

回應範例 (Response Body)

+
{{ json_encode($api['response'], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
+
+ + @if(isset($api['notes'])) +
+
+ + 實作備註 +
+

+ {{ $api['notes'] }} +

+
+ @endif +
+
+ @endforeach + @endforeach +