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