← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15513: minor rename in SchemaController

 

------------------------------------------------------------
revno: 15513
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-06-02 10:04:38 +0200
message:
  minor rename in SchemaController
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/SchemaController.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/SchemaController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/SchemaController.java	2014-06-02 07:45:44 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/SchemaController.java	2014-06-02 08:04:38 +0000
@@ -49,13 +49,13 @@
     private SchemaService schemaService;
 
     @RequestMapping
-    public @ResponseBody Schemas getSchemasJson()
+    public @ResponseBody Schemas getSchemas()
     {
         return new Schemas( schemaService.getSchemas() );
     }
 
     @RequestMapping( value = "/{type}" )
-    public @ResponseBody Schema getSchemaJson( @PathVariable String type )
+    public @ResponseBody Schema getSchema( @PathVariable String type )
     {
         return schemaService.getSchemaBySingularName( type );
     }