@extends('layouts.app') @section('site_title', formatTitle([__('Spaces'), __('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' => __('Spaces')] ]])

{{ __('Spaces') }}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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