Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3637

I can't deploy the rest-builder module (Liferay 7.4)

$
0
0

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.

rest-builder module created in the workspace

In the “rest-openapi.yaml” file I have added the following code:

rest-openapi.yaml file

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:

demo-rest-builder-impl src package

Finally, the following command is executed: blade gw deploy

An error occurs in the “BaseUsuarioResourceImpl” class because it is importing the deprecated class “TransformUtil”.

Deprecated Transform class 1

Deprecated Transform class 2

  • What solution could be applied to this?
  • What am I doing wrong?

Viewing all articles
Browse latest Browse all 3637

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>