camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From crico <carles.r...@gmail.com>
Subject Swagger security info with RestDSL
Date Thu, 02 Mar 2017 16:51:08 GMT
Hi everyone,I'm building rest services in Apache Camel with RestDSL from a
Swagger specification.Swagger Editor doesn't have a Apache Camel Generator
that build RestDSL routes. So I need to write hand by hand the java code. To
check the development, I've activated api-docs in Camel to get the swagger
definition form RestDSL code and I compare this result with the swagger
specification .So, I don't find how specify security information in a Rest
service with Rest DSL.I show below an example:/age/q/search/{indexPage}:   
post:      description: |        Search for notes.      tags:        -
Agenda      operationId: Search for notes.      produces:         -
application/json      parameters:        - name: indexPage          in: path         
type: integer          format: int32          description: Page index.         
required: true     * security:        - racc:          - age@cercar*     
responses:        200:          description: Result          schema:           
$ref: '#/definitions/TipusAgendaResumidaList'        500:         
description: Unexpected error.          schema:            $ref:
'#/definitions/TipusError500' Could you help?Thank's,CRICO.  



--
View this message in context: http://camel.465427.n5.nabble.com/Swagger-security-info-with-RestDSL-tp5794701.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message