Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To begin with, we need to create an endpoint that will be responsible for sing in/up  for the selected social network.


In api/api-spec/src/main/resources/spec/api

You need to create a new directory that will be your new API class. In it, you must create a controller.xml in which you will describe the endpoints. In the newly created directory, make another directory. This will be your endpoint. In this directory, you must create an endpoint.xml file. This is where you describe the behavior of your endpoint for authorization.

Image Added

Image Added

And after that, we need to generate our objects.

cmd/run generate api

@GET("/api/v1/login/google")
public ResponseEntity<GenericApiResponse<JwtTokenResponse>> loginViaGoogle(final OAuth2User user) {

}

...