Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit c8a952e

Browse files
committed
Delete Final:
Minor controller fixup
1 parent e47a868 commit c8a952e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/energyos/espi/thirdparty/web/MeterReadingController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class MeterReadingController extends BaseController {
7272
@Autowired
7373
private MeterReadingRESTService meterReadingService;
7474
75-
@RequestMapping(value = Routes.THIRD_PARTY_METER_READINGS_SHOW, method = RequestMethod.GET)
75+
@RequestMapping(value = Routes.THIRD_PARTY_METER_READINGS_SHOW, method = RequestMethod, produces = "application/atom+xml") @ResponseBody
7676
public String show(@PathVariable String meterReadingId, ModelMap model, Principal principal) throws JAXBException {
7777
RetailCustomer currentCustomer = currentCustomer(principal);
7878
model.put("meterReading", meterReadingService.findByUUID(currentCustomer.getId(), UUID.fromString(meterReadingId)));

src/main/java/org/energyos/espi/thirdparty/web/UsagePointController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public String show(@PathVariable Long retailCustomerId, @PathVariable Long usage
104104
@Transactional (rollbackFor= {javax.xml.bind.JAXBException.class},
105105
noRollbackFor = {javax.persistence.NoResultException.class, org.springframework.dao.EmptyResultDataAccessException.class })
106106
(readOnly = true)
107-
@RequestMapping(value = Routes.USAGE_POINT_SHOW_TP, method = RequestMethod.GET)
107+
@RequestMapping(value = Routes.USAGE_POINT_SHOW_TP, method = RequestMethod, produces = "application/atom+xml") @ResponseBody
108108
public String show(@PathVariable("UsagePointHashedId") String usagePointHashedId, ModelMap model, Principal principal) throws JAXBException {
109109
RetailCustomer currentCustomer = currentCustomer(principal);
110110
try {

0 commit comments

Comments
 (0)