Skip to content

Conversation

@bigludo7
Copy link
Collaborator

Hello,
Following Dec13th meeting, please see a proposal for a specific OAS definition pour simswap with 2 resources: retrieveSimSwapDate & checkSimSwap.
Thanks

Fixed response code for check (200 instead of 201)
Copy link
Collaborator

@jlurien jlurien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments are mainly cosmetic and to align API look & feel with the recently approved guidelines. For your consideration:

  • max_age may be optional as we are defining a defaut value. I don't have a strong opinion here. Optional may be easier to use for consumers but defining it as required make consumers more aware of the threshold.
  • For security we are assuming both client credentials and three_legged. I think this covers uncertainty about privacy or consents implications. However, as scopes are per operation we have to place security under each operation

url: https://github.com/camaraproject/
security:
- oAuth2ClientCredentials: []
- BasicAuth: []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Securitization is being discussed transversely, but we are usually considering client credentials or three_legged in other APIs.

bigludo7 and others added 24 commits December 14, 2022 15:50
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Removed unused security schemes (BasicAuth & apiKey)
Copy link
Contributor

@monamok monamok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I leave some comments as improvements. I also suggest to remove "Create" word from the descriptions as there's anything being created here. I understand that it's because they're POST operations so I leave it to you to decide.

bigludo7 and others added 4 commits December 14, 2022 17:59
Co-authored-by: Mona Mokhber <mona.mokhber@telefonica.com>
Co-authored-by: Mona Mokhber <mona.mokhber@telefonica.com>
Co-authored-by: Mona Mokhber <mona.mokhber@telefonica.com>
Co-authored-by: Mona Mokhber <mona.mokhber@telefonica.com>
@bigludo7
Copy link
Collaborator Author

Thanks a lot @jlurien & @monamok for your valuable review.

Only one item pending: @jlurien you suggest I remove
`security:

  • oAuth2ClientCredentials: []
  • BasicAuth: []
  • apiKey: []
  • three_legged:
    • checkSimSwap
    • getSimSwapDate`

line 25-31 correct?

Just to be sure I got it correctly.

@jlurien
Copy link
Collaborator

jlurien commented Dec 14, 2022

Thanks a lot @jlurien & @monamok for your valuable review.

Only one item pending: @jlurien you suggest I remove `security:

  • oAuth2ClientCredentials: []

  • BasicAuth: []

  • apiKey: []

  • three_legged:

    • checkSimSwap
    • getSimSwapDate`

line 25-31 correct?

Just to be sure I got it correctly.

Yes, this global security is overriden by the security at operation level, so as we are defining a security per operation this global one takes no effect.

@monamok
Copy link
Contributor

monamok commented Dec 14, 2022

I just realized that "status" is missing in the errors. You might want to include it as well.
https://github.com/camaraproject/WorkingGroups/blob/main/Commonalities/documentation/API-design-guidelines.md#6-error-responses

@jlurien
Copy link
Collaborator

jlurien commented Dec 14, 2022

I just realized that "status" is missing in the errors. You might want to include it as well. https://github.com/camaraproject/WorkingGroups/blob/main/Commonalities/documentation/API-design-guidelines.md#6-error-responses

Yes, that is indeed in the guidelines. I didn't comment on that on purpose as we are not currently adding it in other v0.x APIs, but it could be added as we will have to eventually add it. We can do it now or in a feature version @bigludo7

Removed security scheme at API level (as they are at operation level).
Added Status for error.
Copy link
Collaborator Author

@bigludo7 bigludo7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove security schemes
add status for error

@bigludo7
Copy link
Collaborator Author

@monamok @jlurien @bigludo7 @DT-DawidWroblewski I updated the OAS following your review. I let you take a final look. Thanks.

jlurien
jlurien previously approved these changes Dec 15, 2022
Copy link
Collaborator

@jlurien jlurien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 2 minor suggestions and a couple of comments to keep in mind for future versions. Thank you so much for moving this forward and be so collaborative

- code
- message
properties:
code:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a v1.x I think we should define an enum with specific error codes for the identified logical errors, e.g SIM_SWAP.MSISDN_REQUIRED, etc, but as we have pressure to close this, we can leave it now as a generic string, as it is in other v0.x versions

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Probably worth to be discussed in Commonalities.
We can probably raise a issue in commonalities to not forget this.

description: Subscriber number in E.164 format (starting with country code). Optionally prefixed with '+'.
ErrorInfo:
type: object
required:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if status will be required in v1.x as well, but as it is not present in other v0.x APIs, let's leave it as optional for now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thinking on my side. I've checked QoD API for example and status is not there so my proposal is to have this attribute but optional for this release. Could be a topic for commonalities.

bigludo7 and others added 2 commits December 15, 2022 12:10
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
Co-authored-by: Jose Luis Urien <jlurien@gmail.com>
jlurien
jlurien previously approved these changes Dec 15, 2022
@bigludo7
Copy link
Collaborator Author

@DT-DawidWroblewski up to you for final review and merging if ok !
I will them complete documentation.

@bigludo7
Copy link
Collaborator Author

Hi @DT-DawidWroblewski
Any chance to have your approval today?
I would like to provide document & close this today by EOD
thanks

monamok
monamok previously approved these changes Dec 19, 2022
Copy link
Contributor

@monamok monamok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small typo to fix and the rest looks good

Co-authored-by: Mona Mokhber <mona.mokhber@telefonica.com>
@bigludo7 bigludo7 dismissed stale reviews from monamok and jlurien via e218dfe December 27, 2022 13:03
@bigludo7
Copy link
Collaborator Author

Hi @DT-DawidWroblewski
Friendly reminder for review and then merging.
Thanks

@jlurien
Copy link
Collaborator

jlurien commented Dec 29, 2022

@DT-DawidWroblewski Please comment on this PR or merge it otherwise, so we can have both approaches in main

@DT-DawidWroblewski DT-DawidWroblewski merged commit c380f8c into main Dec 29, 2022
@bigludo7 bigludo7 deleted the bigludo7-patch-2 branch December 30, 2022 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants