Skip to content

icreated/webstore-api

Repository files navigation

WebStore API

Java OSGi API License

REST API plugin for iDempiere powering the ICreated WebStore frontend.


Overview

This project provides a REST API for building e-commerce frontends on top of iDempiere.

It follows an OpenAPI-first approach:

  • endpoints defined in openapi.yaml
  • interfaces generated automatically
  • controllers implement the API
  • services handle business logic

Flow:

openapi.yaml → API interfaces → Controllers → Services → iDempiere


Tech Stack

  • Java 17
  • OSGi (iDempiere / Jetty)
  • JAX-RS (Jersey)
  • OpenAPI 3 / Swagger
  • JWT authentication
  • Jackson
  • Hibernate Validator

Getting Started

Clone

git clone https://github.com/icreated/webstore-api.git cd webstore-api

Build

mvn clean package

Deploy

add plugin vie Apache Felix Console: /osgi/system/console

Or install via OSGi console:

osgi> install file:/path/to/plugin.jar
osgi> start


API Documentation


Authentication

Authorization: Bearer

Login

POST /auth/login


Main Endpoints

Public

  • GET /catalog/categories
  • GET /catalog/products/{categoryId}
  • GET /catalog/products/search
  • GET /common/countries
  • GET /common/shippers

Authenticated

  • GET /account/info
  • PUT /account/info
  • POST /account/orders
  • GET /account/orders
  • POST /account/orders/{id}/payment

Architecture

  • Controller — REST endpoints
  • Service — business logic
  • Factory — dependency injection
  • Security — JWT, CORS
  • Utils — helpers

Project Structure

src/ ├── api/ ├── controller/ ├── service/ ├── security/ ├── factory/ ├── mapper/ ├── utils/


Configuration

Uses iDempiere W_Store configuration.


Versioning

Managed via Git tags and Maven.


Related Projects


Contributing

Pull requests are welcome.


License

GPL v2

About

Icreated WebStore API plugin for ERP iDempiere

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors