Skip to content

oktadev/okta-java-rest-api-comparison-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java REST API Showdown: A Comparison Among The Best Frameworks In The Market

This example shows how to create Java REST APIs with Micronaut, Quarkus, and Spring Boot.

Please read Java REST API Showdown: A Comparison Among The Best Frameworks In The Market for a tutorial that shows you how to build each application.

Prerequisites:

Okta has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage and secure users and roles in any application.

Getting Started

To install this example application, run the following commands:

git clone https://github.com/oktadev/okta-java-rest-api-comparison-example.git

This will get a copy of the project locally. There are three folders: micronaut, quarkus, and spring-boot.

Create a Free Okta Developer Account

If you don't have one, create an Okta Developer account. After you've completed the setup process, log in to your account and navigate to copy the Org URL in from the top right corner of the page, it will look something like: https://dev-123456.okta.com.

Paste the value of {yourOktaDomain} into the following files:

  • micronaut/src/main/resources/application.yml
  • quarkus/src/main/resources/application.properties
  • spring-boot/src/main/resources/application.properties

Start the application

To start each application you can use the commands below:

  • Micronaut: ./mvnw mn:run
  • Quarkus: ./mvnw compile quarkus:dev
  • Spring Boot: ./mvnw spring-boot:run

Links

This example uses the following libraries provided by Okta:

Help

Please post any questions as comments on the blog post, or visit our Okta Developer Forums.

License

Apache 2.0, see LICENSE.

Releases

No releases published

Packages

No packages published

Languages

  • Batchfile 44.6%
  • HTML 32.8%
  • Java 22.6%