@extends('layouts.app') @section('site_title', formatTitle([__('Domains'), __('Developers'), config('settings.title')])) @section('head_content') @endsection @section('content')
@include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => route('home'), 'title' => __('Home')], ['url' => route('developers'), 'title' => __('Developers')], ['title' => __('Domains')] ]])

{{ __('Domains') }}

@include('developers.partials.authentication')
{{ __('List') }}

{{ __('API endpoint') }}

GET
{{ route('api.domains.index') }}

{{ __('Request example') }}

curl --location --request GET '{{ route('api.domains.index') }}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'

{{ __('Parameters') }}

@include('developers.partials.parameters-list', ['parameters' => [ [ 'name' => 'search', 'type' => 0, 'format' => 'string', 'description' => __('Search query') . '.' ], [ 'name' => 'search_by', 'type' => 0, 'format' => 'string', 'description' => __('Search by') . '. ' . __('Possible values are: :values.', [ 'values' => implode(', ', [ __(':value for :name', ['value' => 'name', 'name' => '' . __('Name') . '']) ]) ]) .' ' . __('Defaults to: :value.', ['value' => 'name']) ], [ 'name' => 'sort_by', 'type' => 0, 'format' => 'string', 'description' => __('Sort by') . '. ' . __('Possible values are: :values.', [ 'values' => implode(', ', [ __(':value for :name', ['value' => 'id', 'name' => '' . __('Date created') . '']), __(':value for :name', ['value' => 'name', 'name' => '' . __('Name') . '']) ]) ]) .' ' . __('Defaults to: :value.', ['value' => 'id']) ], [ 'name' => 'sort', 'type' => 0, 'format' => 'string', 'description' => __('Sort') . '. ' . __('Possible values are: :values.', [ 'values' => implode(', ', [ __(':value for :name', ['value' => 'desc', 'name' => '' . __('Descending') . '']), __(':value for :name', ['value' => 'asc', 'name' => '' . __('Ascending') . '']) ]) ]) .' ' . __('Defaults to: :value.', ['value' => 'desc']) ], [ 'name' => 'per_page', 'type' => 0, 'format' => 'integer', 'description' => __('Results per page') . '. '. __('Possible values are: :values.', [ 'values' => '' . implode(', ', [10, 25, 50, 100]) . '' ]) .' ' . __('Defaults to: :value.', ['value' => '' . config('settings.paginate') . '']) ] ]])
{{ __('Show') }}

{{ __('API endpoint') }}

GET
{!! str_replace(':id', '{id}', route('api.domains.show', ['id' => ':id'])) !!}

{{ __('Request example') }}

curl --location --request GET '{!! str_replace(':id', '{id}', route('api.domains.show', ['id' => ':id'])) !!}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
{{ __('Store') }}

{{ __('API endpoint') }}

POST
{{ route('api.domains.store') }}

{{ __('Request example') }}

curl --location --request POST '{{ route('api.domains.store') }}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'

{{ __('Parameters') }}

@include('developers.partials.parameters-list', ['parameters' => [ [ 'name' => 'name', 'type' => 1, 'format' => 'string', 'description' => __('Name') . '.' ], [ 'name' => 'homepage_url', 'type' => 0, 'format' => 'string', 'description' => __('Homepage URL') . '.' ], [ 'name' => 'not_found_url', 'type' => 0, 'format' => 'string', 'description' => __('404 Not Found URL') . '.' ] ]])
{{ __('Update') }}

{{ __('API endpoint') }}

PUT PATCH
{!! str_replace(':id', '{id}', route('api.domains.update', ['id' => ':id'])) !!}

{{ __('Request example') }}

curl --location --request PUT '{!! str_replace(':id', '{id}', route('api.domains.update', ['id' => ':id'])) !!}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'

{{ __('Parameters') }}

@include('developers.partials.parameters-list', ['parameters' => [ [ 'name' => 'homepage_url', 'type' => 0, 'format' => 'string', 'description' => __('Homepage URL') . '.' ], [ 'name' => 'not_found_url', 'type' => 0, 'format' => 'string', 'description' => __('404 Not Found URL') . '.' ] ]])
{{ __('Delete') }}

{{ __('API endpoint') }}

DELETE
{!! str_replace(':id', '{id}', route('api.domains.destroy', ['id' => ':id'])) !!}

{{ __('Request example') }}

curl --location --request DELETE '{!! str_replace(':id', '{id}', route('api.domains.destroy', ['id' => ':id'])) !!}' \
--header 'Authorization: Bearer {api_key}'
@endsection @include('shared.sidebars.user')