Skip to content

Commit

Permalink
openapi file
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisKina-dev committed Dec 4, 2024
1 parent 950d341 commit dd048d3
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 32 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ springBoot {

openApiGenerate {
generatorName.set("spring")
inputSpec.set("$rootDir/openapi/template-payments-java-repository.openapi.yaml")
inputSpec.set("$rootDir/openapi/p4pa-pu-bff.openapi.yaml")
outputDir.set("$projectDir/build/generated")
apiPackage.set("it.gov.pagopa.template.controller.generated")
modelPackage.set("it.gov.pagopa.template.model.generated")
Expand Down
106 changes: 106 additions & 0 deletions openapi/p4pa-pu-bff.openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
openapi: 3.0.1
info:
title: API Documentation
description: OpenAPI documentation
version: 1.0.0
servers:
- url: "http://localhost:8080"
description: Generated server url
paths:
/organizations:
get:
tags:
- Organizations
summary: "Retrieve the list of organizations"
operationId: getOrganizations
security:
- bearerAuth: [ ]
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/OrganizationDTO'
'401':
description: Unauthorized - Missing or invalid token
'403':
description: Forbidden - Access denied
'500':
description: Internal Server Error
/info/brokerConfig:
get:
tags:
- ConfigFe
summary: "Retrieve application information for FE"
operationId: getBrokerConfig
security:
- bearerAuth: [ ]
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigFE'
'401':
description: Unauthorized - Missing or invalid token
'403':
description: Forbidden - Access denied
'500':
description: Internal Server Error
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
schemas:
OrganizationDTO:
type: object
properties:
orgId:
type: string
description: Organization ID
name:
type: string
description: Organization name
role:
type: string
description: Organization role
logo:
type: string
format: base64
description: Base64 encoded logo of the organization
ConfigFE:
type: object
properties:
headerAssistanceUrl:
type: string
description: URL for header assistance
logoFooterImg:
type: string
description: URL for footer logo image
footerDescText:
type: string
description: Description text for the footer
footerPrivacyInfoUrl:
type: string
description: URL for privacy information in the footer
footerGDPRUrl:
type: string
description: URL for GDPR information in the footer
footerTermsCondUrl:
type: string
description: URL for terms and conditions in the footer
footerAccessibilityUrl:
type: string
description: URL for accessibility information in the footer
brokerId:
type: string
description: Broker ID
canManageUsers:
type: boolean
description: Indicates if the user can manage other users
31 changes: 0 additions & 31 deletions openapi/template-payments-java-repository.openapi.yaml

This file was deleted.

0 comments on commit dd048d3

Please sign in to comment.