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

{{ __('Websites') }}

@include('developers.notes')
{{ __('List') }}

{{ __('API endpoint') }}:

GET
{{ route('websites.index') }}

{{ __('Request example') }}:

curl --location --request GET '{{ route('websites.index') }}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
@include('developers.websites.list', ['type' => 0])
{{ __('Show') }}

{{ __('API endpoint') }}:

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

{{ __('Request example') }}:

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

{{ __('API endpoint') }}:

POST
{{ route('websites.store') }}

{{ __('Request example') }}:

curl --location --request POST '{{ route('websites.store') }}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
@include('developers.websites.store_update', ['type' => 1])
{{ __('Update') }}

{{ __('API endpoint') }}:

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

{{ __('Request example') }}:

curl --location --request PUT '{!! str_replace(':id', '{id}', route('websites.update', ['id' => ':id'])) !!}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
@include('developers.websites.store_update', ['type' => 0])
{{ __('Delete') }}

{{ __('API endpoint') }}:

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

{{ __('Request example') }}:

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