Posts

Showing posts with the label Restful

How to Create a REST API With Helidon SE and Java?

Image
Hello everyone, Today, we will show you how to create a simple REST API with Helidon SE 2.5.0 and Java 17 . Quick Overview: Helidon SE is designed to be a microframework that fortifies the reactive programming model. Helidon SE features three core APIs to engender a microservice -- a web server, configuration, and security -- for building microservices-predicated applications.  Helidon's web server is an asynchronous and reactive API that runs on top of Netty. The WebServer interface includes support for configuration, routing, error handling, and building metrics and health endpoints. The Config loads and processes configuration properties(application.properties or application.yaml) in key/value format.  The Security class provides support for authentication, sanction, and audit. Let's begin, Final Project Directory: Maven [pom.xml]: <?xml version = "1.0" encoding = "UTF-8" ?> <project xmlns = "http://maven.apache.org/POM/4.0.0" x

Build REST CRUD APIs with Spring Boot and MYSQL

Image
Hello everyone, In this article, we will learn how to develop a  REST-style web service with Spring Boot, Spring Data JPA, and MYSQL. GitHub repository link is provided at the end of this tutorial. You can download the source code. Technologies used :  Spring Boot 2.6.3 Spring  Data JPA 2.6.3 Java 11 MYSQL connector  MYSQL Server Maven 3+  These are APIs that Spring backend App will export:   GET all User's        :     /api/v1/users            : get  GET User by ID     :     /api/v1/users/{id}    : get CREATE User        :     /api/v1/users            : post UPDATE User        :     /api/v1/users/{id}    : put DELETE User        :     /api/v1/users/{id}    : delete  Final Project Directory: Create database 'userdb': CREATE DATABASE userdb; Maven[pom.xml]   A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details utilized by Maven to build the project. It contains default

Micronaut + Vue.js + MongoDB CRUD Example

Image
Hello everyone, today we will learn how to develop a full-stack web application that is a basic User Management Application using Micronaut, Vue.js and MongoDB. GitHub repository link is provided at the end of this tutorial. You can download the source code. After completing this tutorial what we will build?   We will build a full-stack web application that is a basic User Management Application with CRUD features: • Create User • List User • Update User  • Delete User   Add User: View All Users: Update User: We divided this tutorial into two parts.   PART 1 - Rest APIs Development using Micronaut PART 2 - UI development using Vue.js   PART 1 - Rest APIs Development using Micronaut  Project Directory: Maven[pom.xml] A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details utilized by Maven to build the project. It contains default values for most projects. Some of the configurations t