openapi services

This commit is contained in:
Andras Bacsai
2024-07-09 13:30:13 +02:00
parent c72fd2fc9d
commit 6c33bd9c72
4 changed files with 716 additions and 0 deletions

View File

@@ -6,8 +6,32 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Collection;
use OpenApi\Attributes as OA;
use Symfony\Component\Yaml\Yaml;
#[OA\Schema(
description: 'Service model',
type: 'object',
properties: [
'id' => ['type' => 'integer'],
'uuid' => ['type' => 'string'],
'name' => ['type' => 'string'],
'environment_id' => ['type' => 'integer'],
'created_at' => ['type' => 'string'],
'updated_at' => ['type' => 'string'],
'server_id' => ['type' => 'integer'],
'description' => ['type' => 'string'],
'docker_compose_raw' => ['type' => 'string'],
'docker_compose' => ['type' => 'string'],
'destination_type' => ['type' => 'string'],
'destination_id' => ['type' => 'integer'],
'deleted_at' => ['type' => 'string'],
'connect_to_docker_network' => ['type' => 'boolean'],
'config_hash' => ['type' => 'string'],
'service_type' => ['type' => 'string'],
'is_container_label_escape_enabled' => ['type' => 'boolean'],
],
)]
class Service extends BaseModel
{
use HasFactory, SoftDeletes;