Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
technobel.sf
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mathieu
technobel.sf
Commits
37c0a30b
Commit
37c0a30b
authored
May 18, 2018
by
Mat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renomme les contollers APIContoller pour éviter les confusions
parent
1ce376f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
src/APIBundle/Controller/ImageAPIController.php
src/APIBundle/Controller/ImageAPIController.php
+1
-1
src/APIBundle/Controller/OwnerAPIController.php
src/APIBundle/Controller/OwnerAPIController.php
+1
-1
src/APIBundle/Resources/config/routing.yml
src/APIBundle/Resources/config/routing.yml
+6
-6
No files found.
src/APIBundle/Controller/ImageController.php
→
src/APIBundle/Controller/Image
API
Controller.php
View file @
37c0a30b
...
...
@@ -6,7 +6,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use
Symfony\Component\HttpFoundation\Request
;
use
APIBundle\Form\Image\ImageAPIType
;
class
ImageController
extends
MasterAPIController
class
Image
API
Controller
extends
MasterAPIController
{
/**
...
...
src/APIBundle/Controller/OwnerController.php
→
src/APIBundle/Controller/Owner
API
Controller.php
View file @
37c0a30b
...
...
@@ -8,7 +8,7 @@ use APIBundle\Form\Owner\OwnerAPIType;
use
TechnoBundle\Entity\Owner
;
class
OwnerController
extends
MasterAPIController
class
Owner
API
Controller
extends
MasterAPIController
{
/**
...
...
src/APIBundle/Resources/config/routing.yml
View file @
37c0a30b
api_owner_read
:
path
:
/owners
defaults
:
_controller
:
APIBundle:Owner:read
_controller
:
APIBundle:Owner
API
:read
methods
:
[
GET
]
options
:
expose
:
true
# façon crade d'esposer la route
...
...
@@ -11,19 +11,19 @@ api_owner_read_one:
requirements
:
id
:
\d+
defaults
:
_controller
:
APIBundle:Owner:readOne
_controller
:
APIBundle:Owner
API
:readOne
methods
:
[
GET
]
api_owner_create
:
path
:
/owner/add
defaults
:
_controller
:
APIBundle:Owner:create
_controller
:
APIBundle:Owner
API
:create
methods
:
[
POST
]
api_owner_update
:
path
:
/owner/{id}
defaults
:
_controller
:
APIBundle:Owner:update
_controller
:
APIBundle:Owner
API
:update
requirements
:
id
:
\d+
methods
:
[
POST
]
...
...
@@ -31,7 +31,7 @@ api_owner_update:
api_owner_delete_one
:
path
:
/owner/{id}
defaults
:
_controller
:
APIBundle:Owner:deleteOne
_controller
:
APIBundle:Owner
API
:deleteOne
requirements
:
id
:
\d+
methods
:
[
DELETE
]
...
...
@@ -42,7 +42,7 @@ api_image_update:
requirements
:
id
:
\d+
defaults
:
_controller
:
APIBundle:Image:update
_controller
:
APIBundle:Image
API
:update
methods
:
[
POST
]
##
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment