Skip to content

Commit

Permalink
findActivationsByPayerId operation adapted to return more results.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone committed Nov 4, 2024
1 parent 461212c commit 81b3d8d
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/rtp/api/pagopa/activation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ paths:
that the Payer's RTP Service Provider ID matches the subject claim of
the access token. `403 Forbidden` is returned on mismatch.
If an activation already exists for the provided Payer ID, a new one is
If an activation already exists for the provided Payer ID/Payee ID or,
in case of bulk activation, for the provided Payer ID, a new one is
created. See §3.3.3 of
`CPI-Tavolo-incassi-e-pagamenti-pubblici-RTP-PagoPA.pdf` for more
details.
Expand Down Expand Up @@ -275,26 +276,27 @@ paths:

/activations/findByPayerId:
get:
operationId: findActivationByPayerId
operationId: findActivationsByPayerId
summary: Finds a RTP activation by Payer ID.
description: |
The operation finds a RTP activation by its Payer ID.
The operation finds RTP activations by Payer ID.
When the operation is used by not-admin subject, the system returns
the RTP activation only if its Payer's RTP Service Provider ID matches
the subject claim of the access token, otherwise `404 Not Found` is
returned.
the RTP activations with the Payer's RTP Service Provider ID that
matches the subject claim of the access token.
tags: [read]
security:
- oAuth2: [admin_rtp_activations, read_rtp_activations]
parameters:
- $ref: '#/components/parameters/RequestId'
- $ref: '#/components/parameters/Version'
- $ref: '#/components/parameters/PageNumber'
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PayerId'
responses:
"200":
#description: Found.
$ref: '#/components/responses/Activation'
#description: Ok.
$ref: '#/components/responses/PageOfActivations'
"400":
#description: Bad request.
$ref: '#/components/responses/Error'
Expand All @@ -304,9 +306,6 @@ paths:
"403":
#description: Forbidden.
$ref: '#/components/responses/Error'
"404":
#description: Not found.
$ref: '#/components/responses/Error'
"406":
#description: Not acceptable. Did you require application/json?
$ref: '#/components/responses/Error'
Expand Down

0 comments on commit 81b3d8d

Please sign in to comment.