Interface ReportRestOpenApi

  • All Known Implementing Classes:
    ReportRestController

    @RequestMapping("/v2.1.1/reports/")
    public interface ReportRestOpenApi
    Swagger documentation for reports.
    Author:
    Mauricio Ruiz Beltrán <mauricio.ruiz@kuwaiba.org>
    • Method Detail

      • createClassLevelReport

        @RequestMapping(method=POST,
                        value="createClassLevelReport/{className}/{reportName}/{reportDescription}/{script}/{outputType}/{enabled}/{sessionId}",
                        produces="application/json")
        long createClassLevelReport​(@NotNull @Valid @PathVariable(value="className",required=true)
                                    @NotNull @Valid String className,
                                    @NotNull @Valid @PathVariable(value="reportName",required=true)
                                    @NotNull @Valid String reportName,
                                    @NotNull @Valid @PathVariable(value="reportDescription",required=true)
                                    @NotNull @Valid String reportDescription,
                                    @Valid @PathVariable(value="script",required=true)
                                    @Valid String script,
                                    @Valid @PathVariable(value="outputType",required=true)
                                    @javax.validation.Valid int outputType,
                                    @Valid @PathVariable(value="enabled",required=true)
                                    @javax.validation.Valid boolean enabled,
                                    @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                    @NotNull @Valid String sessionId)
      • createInventoryLevelReport

        @RequestMapping(method=POST,
                        value="createInventoryLevelReport/{reportName}/{reportDescription}/{script}/{outputType}/{enabled}/{sessionId}",
                        produces="application/json")
        long createInventoryLevelReport​(@NotNull @Valid @PathVariable(value="reportName",required=true)
                                        @NotNull @Valid String reportName,
                                        @NotNull @Valid @PathVariable(value="reportDescription",required=true)
                                        @NotNull @Valid String reportDescription,
                                        @Valid @PathVariable(value="script",required=true)
                                        @Valid String script,
                                        @Valid @PathVariable(value="outputType",required=true)
                                        @javax.validation.Valid int outputType,
                                        @Valid @PathVariable(value="enabled",required=true)
                                        @javax.validation.Valid boolean enabled,
                                        @Valid @RequestBody
                                        @Valid List<StringPair> parameters,
                                        @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                        @NotNull @Valid String sessionId)
      • deleteReport

        @RequestMapping(method=DELETE,
                        value="deleteReport/{reportId}/{sessionId}",
                        produces="application/json")
        ChangeDescriptor deleteReport​(@NotNull @Valid @PathVariable(value="reportId",required=true)
                                      @javax.validation.constraints.NotNull,@javax.validation.Valid long reportId,
                                      @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                      @NotNull @Valid String sessionId)
      • updateReport

        @RequestMapping(method=PUT,
                        value="updateReport/{reportId}/{reportName}/{reportDescription}/{enabled}/{outputType}/{script}/{sessionId}",
                        produces="application/json")
        ChangeDescriptor updateReport​(@NotNull @Valid @PathVariable(value="reportId",required=true)
                                      @javax.validation.constraints.NotNull,@javax.validation.Valid long reportId,
                                      @NotNull @Valid @PathVariable(value="reportName",required=true)
                                      @NotNull @Valid String reportName,
                                      @NotNull @Valid @PathVariable(value="reportDescription",required=true)
                                      @NotNull @Valid String reportDescription,
                                      @Valid @PathVariable(value="enabled",required=true)
                                      @javax.validation.Valid boolean enabled,
                                      @Valid @PathVariable(value="outputType",required=true)
                                      @javax.validation.Valid int outputType,
                                      @Valid @PathVariable(value="script",required=true)
                                      @Valid String script,
                                      @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                      @NotNull @Valid String sessionId)
      • updateReportParameters

        @RequestMapping(method=PUT,
                        value="updateReportParameters/{reportId}/{sessionId}",
                        produces="application/json")
        ChangeDescriptor updateReportParameters​(@NotNull @Valid @PathVariable(value="reportId",required=true)
                                                @javax.validation.constraints.NotNull,@javax.validation.Valid long reportId,
                                                @Valid @RequestBody
                                                @Valid List<StringPair> parameters,
                                                @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                                @NotNull @Valid String sessionId)
      • getClassLevelReports

        @RequestMapping(method=GET,
                        value="getClassLevelReports/{className}/{recursive}/{includeDisabled}/{sessionId}",
                        produces="application/json")
        List<ReportMetadataLight> getClassLevelReports​(@NotNull @Valid @PathVariable(value="className",required=true)
                                                       @NotNull @Valid String className,
                                                       @NotNull @Valid @PathVariable(value="recursive",required=true)
                                                       @javax.validation.constraints.NotNull,@javax.validation.Valid boolean recursive,
                                                       @NotNull @Valid @PathVariable(value="includeDisabled",required=true)
                                                       @javax.validation.constraints.NotNull,@javax.validation.Valid boolean includeDisabled,
                                                       @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                                       @NotNull @Valid String sessionId)
      • getInventoryLevelReports

        @RequestMapping(method=GET,
                        value="getInventoryLevelReports/{includeDisabled}/{sessionId}",
                        produces="application/json")
        List<ReportMetadataLight> getInventoryLevelReports​(@NotNull @Valid @PathVariable(value="includeDisabled",required=true)
                                                           @javax.validation.constraints.NotNull,@javax.validation.Valid boolean includeDisabled,
                                                           @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                                           @NotNull @Valid String sessionId)
      • getReport

        @RequestMapping(method=GET,
                        value="getReport/{reportId}/{sessionId}",
                        produces="application/json")
        ReportMetadata getReport​(@NotNull @Valid @PathVariable(value="reportId",required=true)
                                 @javax.validation.constraints.NotNull,@javax.validation.Valid long reportId,
                                 @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                 @NotNull @Valid String sessionId)
      • executeClassLevelReport

        @RequestMapping(method=PUT,
                        value="executeClassLevelReport/{objectClassName}/{objectId}/{reportId}/{sessionId}",
                        produces="application/json")
        byte[] executeClassLevelReport​(@NotNull @Valid @PathVariable(value="objectClassName",required=true)
                                       @NotNull @Valid String objectClassName,
                                       @NotNull @Valid @PathVariable(value="objectId",required=true)
                                       @NotNull @Valid String objectId,
                                       @NotNull @Valid @PathVariable(value="reportId",required=true)
                                       @javax.validation.constraints.NotNull,@javax.validation.Valid long reportId,
                                       @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                       @NotNull @Valid String sessionId)
      • executeInventoryLevelReport

        @RequestMapping(method=PUT,
                        value="executeInventoryLevelReport/{reportId}/{sessionId}",
                        produces="application/json")
        byte[] executeInventoryLevelReport​(@NotNull @Valid @PathVariable(value="reportId",required=true)
                                           @javax.validation.constraints.NotNull,@javax.validation.Valid long reportId,
                                           @Valid @RequestBody
                                           @Valid List<StringPair> parameters,
                                           @NotNull @Valid @PathVariable(value="sessionId",required=true)
                                           @NotNull @Valid String sessionId)