@extends('layouts.app') @section('site_title', formatTitle([__('Websites'), __('Developers'), config('settings.title')])) @section('content')
{{ __('API endpoint') }}:
{{ 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])
{{ __('API endpoint') }}:
{!! 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}'
{{ __('API endpoint') }}:
{{ 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])
{{ __('API endpoint') }}:
{!! 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])
{{ __('API endpoint') }}:
{!! 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}'