BolnisiController.java

1
package org.cardanofoundation.explorer.api.controller;
2
3
import lombok.RequiredArgsConstructor;
4
5
import org.springframework.http.ResponseEntity;
6
import org.springframework.validation.annotation.Validated;
7
import org.springframework.web.bind.annotation.GetMapping;
8
import org.springframework.web.bind.annotation.RequestMapping;
9
import org.springframework.web.bind.annotation.RestController;
10
11
import io.swagger.v3.oas.annotations.Operation;
12
import io.swagger.v3.oas.annotations.tags.Tag;
13
14
import org.cardanofoundation.explorer.api.config.LogMessage;
15
import org.cardanofoundation.explorer.api.model.response.BolnisiProjectNumberResponse;
16
import org.cardanofoundation.explorer.api.service.BolnisiMetadataService;
17
18
@RestController
19
@RequestMapping("/api/v1/bolnisi")
20
@RequiredArgsConstructor
21
@Validated
22
@Tag(name = "Bolnisi", description = "The bolnisi APIs")
23
public class BolnisiController {
24
  private final BolnisiMetadataService bolnisiMetadataService;
25
26
  @GetMapping("/overview")
27
  @LogMessage
28
  @Operation(
29
      summary = "Get an overview of the Bolnisi project number",
30
      tags = {"bolnisi"})
31
  public ResponseEntity<BolnisiProjectNumberResponse> getBolnisiProjectNumber() {
32 1 1. getBolnisiProjectNumber : replaced return value with null for org/cardanofoundation/explorer/api/controller/BolnisiController::getBolnisiProjectNumber → SURVIVED
    return ResponseEntity.ok(bolnisiMetadataService.getBolnisiProjectNumber());
33
  }
34
}

Mutations

32

1.1
Location : getBolnisiProjectNumber
Killed by : none
replaced return value with null for org/cardanofoundation/explorer/api/controller/BolnisiController::getBolnisiProjectNumber → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.14.2