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

GG-7031 added open api spec files #87

Merged
merged 2 commits into from
Apr 20, 2023
Merged

GG-7031 added open api spec files #87

merged 2 commits into from
Apr 20, 2023

Conversation

jinbal-hmrc
Copy link
Contributor

No description provided.

@platops-pr-bot
Copy link

  • SBT can be updated to 1.7.2 in project/build.properties
  • Scala can be updated from 2.12.16 to 2.13.8 in build.sbt
  • Your service is building with Java 8, which will soon be removed. Please set JavaType.OPENJDK_JRE11 in build-jobs
  • uk.gov.hmrc.sbt-auto-build can be updated to 3.9.0 in project/plugins.sbt
  • uk.gov.hmrc.sbt-distributables can be updated to 2.2.0 in project/plugins.sbt
  • Deprecated config uk.gov.hmrc.play.bootstrap.AuditModule can be changed to uk.gov.hmrc.play.audit.AuditModule in conf/application.conf
  • Deprecated config uk.gov.hmrc.play.bootstrap.MicroserviceModule can be changed to uk.gov.hmrc.play.bootstrap.backend.BackendModule in conf/application.conf
  • Add uk.gov.hmrc.bootstrap-test-play-28 in project/AppDependencies.scala to provide recommended test dependencies. Use a variable to keep version in sync with bootstrap-play
  • org.scalacheck.scalacheck in project/AppDependencies.scala is not limited to test scope but pulls in test dependencies

public/api/conf/1.0/application.yaml Outdated Show resolved Hide resolved
public/api/conf/1.0/common/overview.md Outdated Show resolved Hide resolved
public/api/conf/1.1/application.yaml Outdated Show resolved Hide resolved
public/api/conf/1.1/common/overview.md Outdated Show resolved Hide resolved
version: '1.0'
servers:
- url: https://api.service.hmrc.gov.uk/
variables: {}
Copy link

Choose a reason for hiding this comment

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

At root level, we need to insert a securitySchemes property as per this example: https://github.com/hmrc/open-api-example-microservice/blob/main/resources/public/api/conf/1.0/application.yaml#L42.

Ensure the scopes match those provided in the API definition: https://github.com/hmrc/openid-connect-userinfo/blob/main/app/views/definition.scala.txt.

Finally, each endpoint needs a security property declaring to which scopes it is restricted, as shown on these lines:

You may need to refer to the RAML or consult someone familiar with this service to determine what those restrictions are.

Copy link

@ModisR ModisR left a comment

Choose a reason for hiding this comment

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

Just 1 more change (to Scopes.md) needed from what I see.

My understanding of security schemes is a little shaky, TBH, but your changes look good and in my experience the pipeline will tell you if you went wrong somewhere. Ultimately, we can always rely on Team API to answer any questions. :)

@@ -2,7 +2,7 @@ Access to user information is controlled through scopes. Each access token (OAut

Copy link

Choose a reason for hiding this comment

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

Scopes.md can be deleted. All its content is included in the OAS YAML info.description property.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

was planning to delete all the legacy docs/files in a separate PR once its been validated

@ShaneTN ShaneTN merged commit 9d31fff into main Apr 20, 2023
@ShaneTN ShaneTN deleted the GG-7031 branch April 20, 2023 09:18
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.

4 participants