Skip to content

Plugin is not adding BaseUriParameters in the method signatures #301

Description

@manikmagar

Given this RAML -

#%RAML 1.0
title: Amazon S3 REST API
version: 1
baseUri: /v1/{somekey}
baseUriParameters:
  somekey:
    description: The name of the bucket
    type: string

/common:
  /list:
    get:

Plugin generated following controller with 2.0.5 version -

@RestController
@Validated
@RequestMapping("/v1/{somekey}/common/list")
public interface ListController {

    @RequestMapping(value = "", method = RequestMethod.GET)
    public ResponseEntity<?> getObject(
        @RequestHeader
        HttpHeaders httpHeaders);

}

As seen in the method signature, it is missing the injection of somekey path variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions