|
@@ -0,0 +1,55 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace FTTHBundle\Controller\REST;
|
|
|
+
|
|
|
+use FOS\RestBundle\Controller\Annotations\RouteResource;
|
|
|
+use FTTHBundle\Form\OLTType;
|
|
|
+use WebserviceBundle\Controller\RESTController;
|
|
|
+use FOS\RestBundle\Util\Codes;
|
|
|
+use FOS\RestBundle\View\View as FOSView;
|
|
|
+use Symfony\Component\HttpFoundation\Request;
|
|
|
+
|
|
|
+/**
|
|
|
+ * TrafficProfile controller.
|
|
|
+ * @RouteResource("TrafficProfile")
|
|
|
+ */
|
|
|
+class TrafficProfileRESTController extends RESTController
|
|
|
+{
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return string Retorna el nombre de la Entity de trabajo.
|
|
|
+ */
|
|
|
+ public function getRepository()
|
|
|
+ {
|
|
|
+ return 'FTTHBundle:TrafficProfile';
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return string Retorna el tipo de la clase.
|
|
|
+ */
|
|
|
+ public function getFormEntityType()
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+// return get_class(new TrafficProfileType());
|
|
|
+ }
|
|
|
+
|
|
|
+ public function postAction(Request $request)
|
|
|
+ {
|
|
|
+ return FOSView::create("Not implemented.", Codes::HTTP_INTERNAL_SERVER_ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function putAction(Request $request, $entity = null)
|
|
|
+ {
|
|
|
+ return FOSView::create("Not implemented.", Codes::HTTP_INTERNAL_SERVER_ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function patchAction(Request $request, $entity)
|
|
|
+ {
|
|
|
+ return FOSView::create("Not implemented.", Codes::HTTP_INTERNAL_SERVER_ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function deleteAction(Request $request, $entity)
|
|
|
+ {
|
|
|
+ return FOSView::create("Not implemented.", Codes::HTTP_INTERNAL_SERVER_ERROR);
|
|
|
+ }
|
|
|
+}
|