Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
3319: Added LocationAttributes controller
Browse files Browse the repository at this point in the history
  • Loading branch information
druchniewicz committed May 14, 2024
1 parent 7a4c11b commit 38b54a5
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 108 deletions.
4 changes: 4 additions & 0 deletions omod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@
<groupId>org.openmrs.module</groupId>
<artifactId>messages-api</artifactId>
</dependency>
<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>visits-api</artifactId>
</dependency>
<dependency>
<groupId>org.openmrs.module</groupId>
<artifactId>addresshierarchy-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
* <p>
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

package org.openmrs.module.cflcore.web.controller;

import org.openmrs.module.visits.api.dto.LocationAttributeDTO;
import org.openmrs.module.visits.api.util.LocationsAttributesUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController("cfl.locationAttributesController")
@RequestMapping(value = "/cfl/locationAttributes")
public class LocationAttributesController {

@RequestMapping(value = "", method = RequestMethod.GET)
@ResponseBody
public List<LocationAttributeDTO> getLocationsAttributes() {
return LocationsAttributesUtil.getLocationsAttributes();
}
}
Loading

0 comments on commit 38b54a5

Please sign in to comment.