Skip to content
New issue

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

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

Already on GitHub? # to your account

feat(user-service): Re-evaluate Spring Boot code generated by OpenAPI Generator #705

Merged
merged 64 commits into from
Sep 27, 2022

Conversation

tschaffter
Copy link
Member

@tschaffter tschaffter commented Sep 14, 2022

Changelog

  • Update the OpenAPI generator.
  • Refactor the user service around the code generated with the OpenAPI generator.
    • Generate code with nx openapi-generate challenge-user-service.
    • Use mustache template to customize the code generated.
  • Implemented the following endpoint:
    • Get a user by id
    • List all users (paginated)
    • Register a user

    Note
    A PATCH endpoint is included but not implemented.

  • Add Flyway Gradle plugin to manipulate the DB. Example:
    • ./gradlew flywayClean: delete the content of the DB.
  • Enable Spring Boot app actuators.

Note
Keeping the old code of the service for as long as it is needed.

Future work

@tschaffter tschaffter self-assigned this Sep 14, 2022
@tschaffter
Copy link
Member Author

tschaffter commented Sep 21, 2022

IntelliSense cannot resolve org.sagebionetworks.challenge.util

image

  • The library is properly installed to the local Maven cache.
  • mavenLocal() is specified in build.gradle.
  • The project builds successfully, so it's an IntelliSense issue.

The solution was to make a dummy edit to build.gradle, which then prompt an option to reload the (gradle) project. Once done, the library package is successfully resolved.

@tschaffter tschaffter marked this pull request as ready for review September 27, 2022 21:31
@tschaffter tschaffter merged commit 3d569c6 into Sage-Bionetworks:main Sep 27, 2022
@tschaffter tschaffter deleted the review-openapi-to-code branch September 27, 2022 21:31
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explore integrating Spring Boot code generated by OpenAPI
1 participant