verb="get|post"

https://cwiki.apache.org/confluence/display/OFBIZ/How+to+implement+RESTful+APIs+using+the+OFBiz+rest-api+plugin

I also noticed a difference in behavior when using this verb
attribute. This can cause issues in the documentation. The
content-type is also very important.


Em sáb., 9 de ago. de 2025 às 19:09, Rodrigo Souza <[email protected]>
escreveu:

> https://github.com/apache/ofbiz-plugins/tree/release24.09/rest-api
>
> Em sáb., 9 de ago. de 2025 às 18:20, Carlos Navarro <
> [email protected]> escreveu:
>
>> I couldn't find the plugin in the link you provide, I only see the
>> documentation in pdf and html format.
>>
>> Carlos Navarro
>>
>> El sáb, 9 ago 2025 a las 18:05, Rodrigo Souza (<[email protected]>)
>> escribió:
>>
>> > Ok,
>> >
>> > I had problems like this, but I solved it by copying (literally) from
>> > the repository (https://nightlies.apache.org/ofbiz/trunk/plugins/) to
>> > the plugin folder manually.
>> >
>> > I use Gradlew
>> >
>> >
>> > Em sáb., 9 de ago. de 2025 às 15:48, Carlos Navarro <
>> > [email protected]> escreveu:
>> >
>> > > Rodrigo, thank you for your response.
>> > >
>> > > I forgot to mention that I had created a simple service that only
>> > returns a
>> > > message, I already had the attributes you mention configured that way
>> and
>> > > the service works correctly if invoked from the Web Tools, but not as
>> > > exposed as a REST service.
>> > >
>> > > Carlos Navarro
>> > >
>> > > El sáb, 9 ago 2025 a las 14:53, Rodrigo Souza (<
>> [email protected]
>> > >)
>> > > escribió:
>> > >
>> > > > Hi, check services attributes definition.
>> > > > >
>> > > > > Ex: export="true" action="POST"
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > Em sáb., 9 de ago. de 2025 às 11:28, Carlos Navarro <
>> > > > [email protected]> escreveu:
>> > > >
>> > > > > Hello community!
>> > > > >
>> > > > > Apache OFBiz: 24
>> > > > > OS: Windows 10
>> > > > > Java: 17
>> > > > >
>> > > > >
>> > > > > For an Apache OFBiz 24 instance, running java 17, I'm trying to
>> get
>> > the
>> > > > > rest-api plugin I got from
>> https://github.com/apache/ofbiz-plugins
>> > to
>> > > > work
>> > > > > correctly.
>> > > > >
>> > > > > Once the plugin was downloaded and located in the Plugins folder,
>> I
>> > ran
>> > > > the
>> > > > > gradlew "install" -PcomponentName=rest-api command to install it
>> (the
>> > > > > installation went smoothly). I started OFBiz with gradlew "ofbiz
>> > > --start"
>> > > > > but when I try to access https://localhost:8443/rest from a
>> > browser, a
>> > > > 404
>> > > > > error occurs (HTTP Status 404 – Not Found Type Status Report
>> > > Description
>> > > > > The origin server did not find a current representation for the
>> > target
>> > > > > resource or is not willing to disclose that one exists. Apache
>> > > > > Tomcat/10.1.43) and when I try to access the url
>> > > > > https://localhost:8443/docs/swagger-ui.html, the browser displays
>> > the
>> > > > > document correctly but the following error also appears "Failed to
>> > load
>> > > > API
>> > > > > definition. Fetch error response status is 404
>> > > > > https://localhost:8443/rest/openapi.json";. The rest of the OFBiz
>> > > modules
>> > > > > run correctly as far as I can tell and when I access the url of
>> the
>> > > > > rest-api plugin, I don't see any errors in the console or in the
>> > logs.
>> > > > Am I
>> > > > > skipping any steps or making a mistake?
>> > > > >
>> > > > > Thanks in advance.
>> > > > >
>> > > > > Carlos Navarro
>> > > > >
>> > > >
>> > >
>> >
>>
>

Reply via email to