girishvasmatkar/ofbiz-rest-impl — reverse-engineered prompt
Reverse engineered prompt
Build me a Java plugin for Apache OFBiz that lets existing OFBiz services be used through simple REST calls.
I want a REST base URL like /rest where someone can see all available exported services, then call a service by name. It should support GET services with input passed as URL encoded JSON, and POST services with input in the request body. Services should only show up if they are marked as exported and have a REST verb set, like get or post.
Please add bearer token authentication using JWT, return clean JSON responses with status code, message, and data, and include links in the service list so users can discover what to call next. Also expose generated API documentation through Swagger UI and WADL if possible.
Use the existing OFBiz service definitions and keep it easy to plug into an OFBiz installation. Add a small demo service example for finding or searching products so I can test the whole flow end to end.
Want more depth? Deep Reverse