Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,8 @@ OTEL_TRACES_SAMPLER_PARENT=false
# OTEL_INSTRUMENTATION_VIEW=true
# OTEL_INSTRUMENTATION_LIVEWIRE=true
# OTEL_INSTRUMENTATION_CONSOLE=true

# OpenAPI CONFIG
# L5_FORMAT_TO_USE_FOR_DOCS=yaml
L5_SWAGGER_GENERATE_ALWAYS=true # Dev setting
L5_SWAGGER_OPEN_API_SPEC_VERSION=3.1.0
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Homestead.yaml
Homestead.json
.env
.env.*
storage/proxies
storage/*
/public/assets/jquery-cookie/
/public/assets/crypto-js/
/public/assets/bootstrap-tagsinput/
Expand Down
21 changes: 21 additions & 0 deletions app/Swagger/GenericSchemas.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace App\Swagger\schemas;

use OpenApi\Attributes as OA;


#[OA\Schema(
schema: 'PaginateDataSchemaResponse',
type: 'object',
properties: [
new OA\Property(property: 'total', type: 'integer', example: 6),
new OA\Property(property: 'per_page', type: 'integer', example: 5),
new OA\Property(property: 'current_page', type: 'integer', example: 1),
new OA\Property(property: 'last_page', type: 'integer', example: 2),
],
description: 'Base pagination metadata'
)]
class PaginateDataSchemaResponseSchema
{
}
35 changes: 35 additions & 0 deletions app/Swagger/OpenApiInfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

namespace App\Swagger;

use OpenApi\Attributes as OA;

#[OA\Info(
version: "1.0.0",
title: "OpenStackID API",
description: "OpenStackID IDP API Documentation - OAuth2, OpenID Connect, and User Management",
contact: new OA\Contact(
name: "OpenStack Foundation",
email: "support@openstack.org"
),
license: new OA\License(
name: "MIT",
url: "https://opensource.org/licenses/MIT"
)
)]
#[OA\Server(
url: "/",
description: "IDP API Server"
)]
#[OA\SecurityScheme(
securityScheme: "bearerAuth",
type: "http",
scheme: "bearer",
bearerFormat: "JWT"
)]
#[OA\Tag(name: "Users", description: "User management endpoints")]
#[OA\Tag(name: "Groups", description: "Group management endpoints")]
class OpenApiInfo
{
}

4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"ext-pdo": "*",
"beberlei/doctrineextensions": "1.5.0",
"behat/transliterator": "1.5.0",
"darkaonline/l5-swagger": "^9.0",
"ezyang/htmlpurifier": "v4.17.0",
"firebase/php-jwt": "6.11.1",
"get-stream/stream-chat": "^3.10.0",
Expand Down Expand Up @@ -59,7 +60,8 @@
"socialiteproviders/okta": "^4.5.0",
"socialiteproviders/zoho": "^4.1",
"sokil/php-isocodes": "^3.0",
"vladimir-yuldashev/laravel-queue-rabbitmq": "v14.2.0"
"vladimir-yuldashev/laravel-queue-rabbitmq": "v14.2.0",
"zircote/swagger-php": "^5.8"
},
"require-dev": {
"fakerphp/faker": "^1.23",
Expand Down
Loading
Loading