Giter Site home page Giter Site logo

pablovaldivia / idempiere-restful-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aguerrave/idempiere-restful-plugin

0.0 1.0 0.0 42 KB

This is an example of how to create new endpoints for iDempiere and how to integrate RESTful definition

License: GNU General Public License v2.0

Java 100.00%

idempiere-restful-plugin's Introduction

RESTful Web Services iDempiere Plugin

Description

This is an example of how to create new endpoints for iDempiere and how to integrate RESTful definition.

Apache CXF

Features

  • Partner CRUD
  • Restful resources definitions (enpoint, message, http status code)
  • Json contract
  • Exceptions handlers
  • Transactions
  • Version endpoint

Instructions

Adding a new endpoint

It's necessary to add a new bean in WEB-INF/beans.xml file:

<jaxrs:serviceBeans>
			<bean class="com.ingeint.ws.controller.PartnerController" />
			<bean class="com.ingeint.ws.controller.VersionController" />
</jaxrs:serviceBeans>

Adding a new library

Add the new dependency (artifacItem) to the pom.xml file in the artifactItems attribute, example:

    <artifactItems>
        <artifactItem>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>28.0-jre</version>
        </artifactItem>
    </artifactItems>

Then, add a new classpath entry in the .classpath file, example:

    <classpathentry kind="lib" path="lib/guava.jar"/>

Verify you are including the folder lib in the build.properties file, exaple:

bin.includes = .,\
               META-INF/,\
               OSGI-INF/,\
               lib/

Finally, add the new dependency in MANIFEST.MF file as a Bundle-ClassPath attribute, example:

Bundle-ClassPath: .,
 lib/guava.jar

Target Platform

A target platform allows you to download dependencies and build the jar plugin, there are some examples:

idempiere-restful-plugin's People

Contributors

sauljabin avatar

Watchers

James Cloos 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.