src/main/java/org/edgegallery/appstore/interfaces/apackage/web/PushablePackageController.java
@PostMapping(value = "/{packageId}/action/pull", produces = MediaType.APPLICATION_JSON)
    @ApiOperation(value = "pull one package by id.", response = PushablePackageDto.class)
    @ApiResponses(value = {
        @ApiResponse(code = 400, message = "bad request", response = String.class)
    })
    @PreAuthorize("hasRole('APPSTORE_ADMIN')")
    public ResponseEntity<Boolean> pullPackage(
        @ApiParam(value = "package Id") @PathVariable("packageId") String packageId,
        @ApiParam(value = "source AppStore Id and user info") @RequestBody() PullAppReqDto dto) {
        Boolean pullResult = pushablePackageServiceFacade.pullPackage(packageId, dto);
        return ResponseEntity.ok(pullResult);
    }
/**
     * pull package by package id.
     *
     * @param packageId package id
     * @param dto source appStore id and user info
     */
pull package by package id.
@param packageId package id
@param dto source appStore id and user info
pull package by package id . @param packageId package id @param dto source appStore id and user info
@PostMapping(value = "/{packageId}/action/pull", produces = MediaType.APPLICATION_JSON)
    @ApiOperation(value = "pull one package by id.", response = PushablePackageDto.class)
    @ApiResponses(value = {
        @ApiResponse(code = 400, message = "bad request", response = String.class)
    })
    @PreAuthorize("hasRole('APPSTORE_ADMIN')")
    public ResponseEntity<Boolean> pullPackage(
        @ApiParam(value = "package Id") @PathVariable("packageId") String packageId,
        @ApiParam(value = "source AppStore Id and user info") @RequestBody() PullAppReqDto dto) {
        Boolean pullResult = pushablePackageServiceFacade.pullPackage(packageId, dto);
        return ResponseEntity.ok(pullResult);
    }
@ PostMapping ( value = "/{packageId}/action/pull" , produces = MediaType . APPLICATION_JSON ) @ ApiOperation ( value = "pull one package by id." , response = PushablePackageDto . class ) @ ApiResponses ( value = { @ ApiResponse ( code = 400 , message = "bad request" , response = String . class ) } ) @ PreAuthorize ( "hasRole('APPSTORE_ADMIN')" ) public ResponseEntity < Boolean > pullPackage ( @ ApiParam ( value = "package Id" ) @ PathVariable ( "packageId" ) String packageId , @ ApiParam ( value = "source AppStore Id and user info" ) @ RequestBody ( ) PullAppReqDto dto ) { Boolean pullResult = pushablePackageServiceFacade . pullPackage ( packageId , dto ) ; return ResponseEntity . ok ( pullResult ) ; }
pull package by package id.
pull package by package id .