Access to add and change pages is restricted. See: https://cwiki.apache.org/confluence/display/OFBIZ/Wiki+access

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

This page is just being used by the author to record his thoughts/progress towards a REST Service Implementation for Ofbiz. Note this document is a work in progress.

Why?

TODO

How?

Base url: https://localhost/webtools/control/RESTService

Use similar implementation to SOAP and the SoapEventHandler (i.e. implement a RestEventHandler)

Options:

1) Service definitions to contain extra metadata. This metadata would be used to generate the WADL:

    <service name="createPerson" engine="java" default-entity-name="Person"            location="org.ofbiz.party.party.PartyServices" invoke="createPerson" auth="false">
        <description>Create a Person</description>

        <rest-export resource-name="person" method-name="create" http-method="PUT">

        </rest-export>

        <auto-attributes mode="IN" include="pk" optional="true"/>
        <auto-attributes mode="OUT" include="pk" optional="false"/>
        <auto-attributes mode="IN" include="nonpk" optional="true"/>
        <attribute name="preferredCurrencyUomId" type="String" mode="IN" optional="true"/>
        <attribute name="description" type="String" mode="IN" optional="true"/>
        <attribute name="externalId" type="String" mode="IN" optional="true"/>
        <attribute name="statusId" type="String" mode="IN" optional="true"/>
    </service>

2) Create additional Resource based service definitions that map to existing services.

  • No labels