Code Monkey home page Code Monkey logo

aemx_quarkus's Introduction

AEMX-QUARKUS

Intro

This is an application that provides REST API endpoints and support file uploads using the Quarkus framework and Mongo DB for storing data. These endpoints are consumed by aemx-angular project in Adobe Experience Manager (AEM) to be displayed within AEM components in Angular. The application also utilizes the aemx-apicontract project which generates the PersonApi interface and models for person endpoints.

Key Features:

  • Exposes RESTful endpoints for country and person related resources.
  • Integration with the "aemx-angular" project in AEM for data display in Angular components using REST.
  • Utilizes the "aemx-apicontract" project for generating the "PersonApi" interface and models.
  • Uses mongo-db for storing data
  • Allows CSV file upload for adding data to the system.

Usage Guide

  • Install project aemx-apicontract ( view aemx-apicontract))

  • Install this project

     mvn clean install
    
  • Start docker and run command:

     docker run -ti --rm -p 27017:27017 mongo:4.4
    
  • Run the project

     mvn quarkus:dev
    

ENDPOINTS

Country API

GET (retrieves list of countries)

 curl --location 'http://localhost:8080/country'

POST (add new country)

curl --location 'http://localhost:8080/country' 
--header 'Content-Type: application/json' 
--data '{
    "name": "Mauritius",
    "code": "mur",
    "image": "https://mauritius.png"
}'

PUT (modify existing country)

curl --location --request PUT 'http://localhost:8080/country' 
--header 'Content-Type: application/json' 
--data '{
        "name": "Mauritius",
        "code": "code-mur",
        "image": "https://mauritius1.png"
    }'

DELETE (remove country)

curl --location --request DELETE 'http://localhost:8080/country' \
--header 'Content-Type: text/plain' \
--data 'Mauritius'

Persons API

GET (get persons)

curl --location 'http://localhost:8080/person'

POST (add person)

curl --location 'http://localhost:8080/person' \
--header 'Content-Type: application/json' \
--data '{
    "firstName": "Nikhil",
    "lastName": "Aukhaj"
}'

aemx_quarkus's People

Contributors

aurazor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.