@extends('layouts.core.' . $view, [
'menu' => 'api',
])
@section('title', trans('messages.API_Documentation'))
@section('content')
{{ trans('messages.API_Documentation') }}
{!! trans('messages.api_token_guide', ["link" => action("Api\MailListController@index", ["api_token" => "YOUR_API_TOKEN"])]) !!}
@foreach (\Acelle\Library\ApiHelper::docs() as $box)
@if ($box['view'] == $view)
{{ $box['title'] }}
{{ trans('messages.HTTP_method') }} |
{{ trans('messages.Endpoint') }} |
{{ trans('messages.Function') }} |
@foreach ($box['functions'] as $function)
{{ trans('messages.' . $function['method']) }}
|
{{ $function['uri'] }}
|
{{ $function['description'] }}
|
|
@if ($function['parameters'])
{{ trans('messages.parameters') }}
@foreach ($function['parameters'] as $parameter)
- {{ $parameter['name'] }}
@if (isset($parameter['optional']))
{{ trans('messages.optional') }}
@if (isset($parameter['default']))
- default: {{ $parameter['default'] }}
@endif
@endif
- {!! $parameter['description'] !!}
@endforeach
@endif
{{ trans('messages.returns') }}
{{ $function['returns'] }}
|
Example:
@if (is_array($function['example']))
@foreach ($function['example'] as $example)
{!! $example !!}
@endforeach
@else
{!! $function['example'] !!}
@endif
@if (isset($function['help']))
{!! $function['help'] !!}
@endif
|
@endforeach
@endif
@endforeach
@endsection