This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3319: Added LocationAttributes controller
- Loading branch information
1 parent
7a4c11b
commit 38b54a5
Showing
4 changed files
with
142 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...src/main/java/org/openmrs/module/cflcore/web/controller/LocationAttributesController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
Oops, something went wrong.