The rest-builder module is created without problem in the “modules” folder of the workspace with the following command: blade create -t rest-builder demo-rest-builder
Next I refresh the gradle of the project, the rest-builder module is shown in the project explorer without any problem.
In the “rest-openapi.yaml” file I have added the following code:
info: description: "DemoRestBuilder REST API" license: name: "Apache 2.0" url: "http://www.apache.org/licenses/LICENSE-2.0.html" title: "DemoRestBuilder" version: v1.0openapi: 3.0.1paths:"/get-usuario": get: operationId: getUsuarioById parameters: - in: query name: usuarioId required: true schema: type: integer format: int64 responses: 200: description: "Success Response" content: application/json: schema: items: $ref: "#/components/schemas/UsuarioEntidad" application/xml: schema: items: $ref: "#/components/schemas/UsuarioEntidad" tags: ["Usuario"]components: schemas: UsuarioEntidad: properties: usuarioId: type: integer format: int64
The following command is then executed in the “demo-rest-builder” module path: blade gw buildREST
The project's gradle is then refreshed, where the following packages will be automatically created:
Finally, the following command is executed: blade gw deploy
An error occurs in the “BaseUsuarioResourceImpl” class because it is importing the deprecated class “TransformUtil”.
- What solution could be applied to this?
- What am I doing wrong?