Skip to content

Commit

Permalink
Added swagger tags to generate clients classes with custom names
Browse files Browse the repository at this point in the history
  • Loading branch information
klymenko-galyna-ew committed Aug 29, 2023
1 parent 409a9a5 commit 2c5c9ed
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.extrawest</groupId>
<artifactId>extrawest-ocpi-2.2.1-cpo-server</artifactId>
<version>2023.8.24-SNAPSHOT</version>
<artifactId>Extrawest-OCPI-2.2.1-CPO-Server</artifactId>
<version>2023.8.27-SNAPSHOT</version>

<name>Extrawest-OCPI-2.2.1-CPO-Server</name>
<description>Extrawest-OCPI-2.2.1-CPO-Server</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.extrawest.ocpi.model.dto.CdrDTO;
import com.extrawest.ocpi.service.CPOCdrService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -14,6 +15,7 @@

@RestController
@RequestMapping("/cpo/api/2.2.1/cdr")
@Tag(name = "CPOCdr")
public class CPOCdrController {

protected final CPOCdrService cpoCdrService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.extrawest.ocpi.model.dto.request.SetChargingProfileRequestDTO;
import com.extrawest.ocpi.model.dto.response.ChargingProfileResponseDTO;
import com.extrawest.ocpi.service.CPOChargingProfilesService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
Expand All @@ -11,6 +12,7 @@

@RestController
@RequestMapping("/cpo/api/2.2.1/chargingProfiles")
@Tag(name = "CPOChargingProfiles")
public class CPOChargingProfilesController {

protected final CPOChargingProfilesService cpoChargingProfilesService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
import com.extrawest.ocpi.model.dto.response.CommandResponseDTO;
import com.extrawest.ocpi.model.enums.CommandType;
import com.extrawest.ocpi.service.CPOCommandsService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/cpo/api/2.2.1/commands")
@Tag(name = "CPOCommands")
public class CPOCommandsController {

protected final CPOCommandsService cpoCommandsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.extrawest.ocpi.model.dto.CredentialsDTO;
import com.extrawest.ocpi.service.CPOCredentialsService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
Expand All @@ -10,6 +11,7 @@

@RestController
@RequestMapping("/cpo/api/2.2.1/credentials")
@Tag(name = "CPOCredentials")
public class CPOCredentialsController {

protected final CPOCredentialsService cpoCredentialsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.extrawest.ocpi.model.AbstractDomainObject;
import com.extrawest.ocpi.model.dto.LocationDTO;
import com.extrawest.ocpi.service.CPOLocationService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -15,6 +16,7 @@

@RestController
@RequestMapping("/cpo/api/2.2.1/locations")
@Tag(name = "CPOLocation")
public class CPOLocationController {

protected final CPOLocationService cpoLocationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.extrawest.ocpi.model.dto.ChargingPreferencesDTO;
import com.extrawest.ocpi.model.dto.SessionDTO;
import com.extrawest.ocpi.service.CPOSessionsService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
Expand All @@ -13,6 +14,7 @@

@RestController
@RequestMapping("/cpo/api/2.2.1/sessions")
@Tag(name = "CPOSessions")
public class CPOSessionsController {

protected final CPOSessionsService cpoSessionsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.extrawest.ocpi.model.dto.TariffDTO;
import com.extrawest.ocpi.service.CPOTariffService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -14,6 +15,7 @@

@RestController
@RequestMapping("/cpo/api/2.2.1/tariffs")
@Tag(name = "CPOTariff")
public class CPOTariffController {

protected final CPOTariffService CPOTariffService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.extrawest.ocpi.model.dto.TokenDTO;
import com.extrawest.ocpi.model.enums.TokenType;
import com.extrawest.ocpi.service.CPOTokensService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
Expand All @@ -11,6 +12,7 @@

@RestController
@RequestMapping("/cpo/api/2.2.1/tokens")
@Tag(name = "CPOTokens")
public class CPOTokensController {

protected final CPOTokensService cpoTokensService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.extrawest.ocpi.model.dto.response.VersionResponseDTO;
import com.extrawest.ocpi.model.enums.VersionNumber;
import com.extrawest.ocpi.service.CPOVersionService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -15,6 +16,7 @@

@RestController
@RequestMapping("/cpo/api/2.2.1/versions")
@Tag(name = "CPOVersion")
public class CPOVersionController {

protected final CPOVersionService cpoVersionService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

import com.extrawest.ocpi.model.dto.ClientInfoDTO;
import com.extrawest.ocpi.service.ClientInfoService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.Max;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/2.2.1/hubClientInfo")
@Tag(name = "ClientInfo")
public class ClientInfoController {

protected final ClientInfoService clientInfoService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.extrawest.ocpi.model.dto.ClientInfoDTO;
import com.extrawest.ocpi.service.HubClientInfoService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -14,6 +15,7 @@

@RestController
@RequestMapping("/hub/api/2.2.1/hubClientInfo")
@Tag(name = "HubClientInfo")
public class HubClientInfoController {

protected final HubClientInfoService hubClientInfoService;
Expand Down

0 comments on commit 2c5c9ed

Please sign in to comment.