← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16641: expose sqlView api endpoint

 

------------------------------------------------------------
revno: 16641
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2014-09-07 14:42:48 +0700
message:
  expose sqlView api endpoint
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/descriptors/SqlViewSchemaDescriptor.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-api/src/main/java/org/hisp/dhis/schema/descriptors/SqlViewSchemaDescriptor.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/descriptors/SqlViewSchemaDescriptor.java	2014-05-31 13:18:51 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/descriptors/SqlViewSchemaDescriptor.java	2014-09-07 07:42:48 +0000
@@ -42,10 +42,16 @@
 @Component
 public class SqlViewSchemaDescriptor implements SchemaDescriptor
 {
+    public static final String SINGULAR = "sqlView";
+
+    public static final String PLURAL = "sqlViews";
+
+    public static final String API_ENDPOINT = "/" + PLURAL;
+
     @Override
     public Schema getSchema()
     {
-        Schema schema = new Schema( SqlView.class, "sqlView", "sqlViews" );
+        Schema schema = new Schema( SqlView.class, SINGULAR, PLURAL );
         schema.setShareable( true );
         schema.setOrder( 1010 );