Thursday, 24 April 2025

Javalin tutorial

 

Javalin is a lightweight and modern web framework designed for building web applications and RESTful APIs in Java and Kotlin. It focuses on simplicity, flexibility, and ease of use, making it a great choice for developers who want to get started quickly without the overhead of more complex frameworks.

 

Originally inspired by the simplicity of Express.js in the JavaScript ecosystem, Javalin provides a clean and minimalistic approach to handling HTTP requests, routing, and server configuration. Whether you're creating a small microservice or a full-stack web application, Javalin offers the tools you need with minimal boilerplate.

 

In this tutorial series, you'll learn how to:

 

·      Set up a basic Javalin project

·      Create HTTP endpoints (GET, POST, PUT, DELETE)

·      Handle path parameters, query parameters, and request bodies etc.,

      Javalin: Hello world application
      Javalin: GET API example
      Javalin: post api example
      Javalin: Read request body as string
      Javalin: read request body as array of bytes
      Javalin: read request body as input stream
      Javalin: Map request body to a java object
      Javalin: Map request body stream to an object
      Javalin: Validate request payload
      Javalin: File upload example
      Javalin: Read multiple uploaded files with same name
      Javalin: read uploaded files as a list
      Javalin: read uploaded files as a map
      Javalin: read a form parameter by name
      Javalin: validate form parameters
      Javalin: Get all the form parameters mapped to a name
      Using Javalin to Retrieve Form Parameters as a Map
      Javalin: Get the value mapped to this path parameter
      Javalin: Validate path parameter
      How to Retrieve All Path Parameters as a Map in Javalin?
      How to Read Basic Authentication Credentials in Javalin?
      Setting and Retrieving request attributes in Javalin

Previous                                                    Next                                                    Home

No comments:

Post a Comment