Далее я обновляю градиль проекта, модуль Rest-builder отображается в проекте Project Be Breshore Be Breshore Be Bresser. Br/p> P> P> P> P> P> P> P> P> P> P> P> P> P> P> P> P> P> P> P> P> P> P> PRE-Module показан. alt = "Модуль Rest-Builder, созданный в рабочей области" src = "https://i.sstatic.net/lxadehdr.png"/>
В файле « rest-openapi.yaml ». Файл. src = "https://i.sstatic.net/8rvzdgtk.png"/>
Код: Выделить всё
info:
description: "DemoRestBuilder REST API"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
title: "DemoRestBuilder"
version: v1.0
openapi: 3.0.1
paths:
"/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
Наконец, выполняется следующая команда: blade gw развернут
, потому что« baseUrior -lepricempl ». Класс « transformutil ».
Подробнее здесь: https://stackoverflow.com/questions/790 ... iferay-7-4