Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#IOPID-2411] GetVisibleServices removal from OpenApi #322

Merged
merged 4 commits into from
Nov 27, 2024
Merged
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
3 changes: 1 addition & 2 deletions host.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"Function.GetMessages": "Warning",
"Function.GetProfile": "Warning",
"Function.GetService": "Warning",
"Function.GetUserDataProcessing": "Warning",
"Function.GetVisibleServices": "Warning"
"Function.GetUserDataProcessing": "Warning"
},
"applicationInsights": {
"samplingSettings": {
Expand Down
56 changes: 0 additions & 56 deletions openapi/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,6 @@ schemes:
security:
- SubscriptionKey: []
paths:
/services:
get:
operationId: getVisibleServices
summary: GetVisibleServices.
description: >-
Returns all the services that have the 'is_visibile' field value set to
true.
tags:
- restricted
responses:
'200':
description: Found.
schema:
$ref: '#/definitions/PaginatedServiceTupleCollection'
arcogabbo marked this conversation as resolved.
Show resolved Hide resolved
'401':
description: Unauthorized
'429':
description: Too many requests
/services/{service_id}:
get:
operationId: getService
Expand Down Expand Up @@ -670,11 +652,6 @@ definitions:
$ref: '#/definitions/IsTestProfile'
required:
- is_email_validated
PaginatedServiceTupleCollection:
description: A paginated collection of services tuples
allOf:
- $ref: '#/definitions/ServiceTupleCollection'
- $ref: '#/definitions/PaginationResponse'
ProblemJson:
type: object
properties:
Expand Down Expand Up @@ -908,39 +885,6 @@ definitions:
format: OrganizationFiscalCode
x-import: '@pagopa/ts-commons/lib/strings'
example: '12345678901'
ServiceTupleCollection:
description: A collection of services tuples (service and version)
type: object
properties:
items:
type: array
items:
description: Service identifier and version used to return list of services.
type: object
properties:
service_id:
$ref: '#/definitions/ServiceId'
scope:
$ref: '#/definitions/ServiceScope'
version:
type: integer
required:
- service_id
- version
required:
- items
PaginationResponse:
type: object
description: Pagination response parameters.
properties:
prev:
type: string
description: Contains a value useful to get the previous page
example: first_id_of_the_page
next:
type: string
description: Contains a value useful to get the next page
example: last_id_of_the_page
NotificationChannel:
type: string
description: All notification channels.
Expand Down
23 changes: 0 additions & 23 deletions openapi/index.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,6 @@ schemes:
security:
- SubscriptionKey: []
paths:
"/services":
get:
operationId: getVisibleServices
summary: GetVisibleServices.
description: |-
Returns all the services that have the 'is_visibile' field value set to true.
tags:
- restricted
responses:
"200":
description: Found.
schema:
$ref: "#/definitions/PaginatedServiceTupleCollection"
"401":
description: Unauthorized
"429":
description: Too many requests
"/services/{service_id}":
get:
operationId: getService
Expand Down Expand Up @@ -508,8 +491,6 @@ definitions:
$ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/ExtendedProfile"
NewProfile:
$ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/NewProfile"
PaginatedServiceTupleCollection:
$ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/PaginatedServiceTupleCollection"
ProblemJson:
$ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/ProblemJson"
Profile:
Expand Down Expand Up @@ -554,10 +535,6 @@ definitions:
$ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/Timestamp"
OrganizationFiscalCode:
$ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/OrganizationFiscalCode"
ServiceTupleCollection:
$ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/ServiceTupleCollection"
PaginationResponse:
$ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/PaginationResponse"
NotificationChannel:
$ref: "../node_modules/@pagopa/io-functions-commons/openapi/definitions.yaml#/NotificationChannel"
NotificationChannelStatusValue:
Expand Down
Loading