fosrestbundle Questions
3
I'm using FOS Rest Bundle to build an Api, the problem is that every time I try to return anything I get the error message: "Unable to find template" I don't really want to render a template, but t...
Marvel asked 26/2, 2014 at 22:17
5
I am using the FOSRestBundle and was wondering is it possible to validate against empty query parameters using annotations?
For example when calling: /comments/1 an exception is thrown since both...
Patagonia asked 8/7, 2014 at 15:26
1
Solved
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️TL;DR: Edit (before reading the whole thing):
This issue is solved because I made a very stupid mistake in my code, not related to CORS or anything.
If you want to read ...
Gainless asked 29/6, 2015 at 13:48
2
Solved
What is the proper way to create entity which will be linked to other ones? I can't find any source about how it should be done or how it is done in Symfony with FOSRestBundle bundle.
Background:
L...
Fibroin asked 14/7, 2014 at 21:5
2
I'm struggling with a problem linked to the FOSRestBundle (version 0.13.*)
I have some REST api that throws some exceptions, nothing unusual I guess. But, despite the specific configuration I made...
Olfe asked 14/10, 2014 at 12:36
3
Solved
I work on a new Symfony 2 project. I'm learning this framework at the same time. For the user management, I use the bundle FOSUserBundle.
My project works very well, I can login, register, logout a...
Hatchett asked 24/10, 2013 at 18:53
2
Solved
I'm able to get GET parameters with @QueryParam() annotation, but it looks like it works for Query String data only: /user?id=123.
I'd prefer to have it like /user/123 instead. For this, I might ...
Ment asked 23/11, 2013 at 11:25
2
Solved
I'm making REST API for my JS driven app.
During login, the login form is submitted via AJAX to url /rest/login of my API.
If the login is succesful, it returns 204
If it fails, it returns 401
...
Evaevacuant asked 21/1, 2015 at 19:18
2
Solved
I am trying to follow Will Durand's tutorial on how to set up a good REST API with Symfony2. However I am failing in the very beginning as I get this error:
The controller must return a response (...
Lyautey asked 17/4, 2013 at 6:46
2
Solved
Context
I found a lot of questions about partial API response with FOSRest and all the answers are based on the JMS serializer options (exlude, include, groups, etc). It works fine but I try to ach...
Nannettenanni asked 11/12, 2014 at 11:5
1
Solved
I am facing a weird problem relating to UUIDs.
I have developed a REST API using Symfony2+FOSRestBundle+JMSSerializer. As I need to update some tables from two sources I thought of using UUID as ...
Kenosis asked 30/10, 2014 at 17:37
2
This is my config file:
// app/config/config.yml
fos_rest:
body_listener:
array_normalizer: fos_rest.normalizer.camel_keys
I am using the latest version of FOSRestBundle:
// composer.json
"fr...
Administrator asked 11/9, 2014 at 17:53
4
Solved
I am building an API using the FOSRestBundle and am at the stage where I need to implement the handling of the creation of new entities that contain binary data.
Following the methods outlined on ...
Immature asked 15/8, 2014 at 13:53
2
Solved
I making a RESTful app with Symfony and FOSRestBundle. FOSRestBundle uses JMS Serializer to serialize data to json format. I have everything working with one little issue.
This is my Entity class
...
Alongshore asked 23/5, 2013 at 6:48
4
I have been coding an API for a photo sharing app like Instagram using Symfony2, FOSRESTBundle, and Vichuploader for file uploads.
I'm able to work around GET and POST requests, but I can't find a...
Nascent asked 16/6, 2013 at 3:18
1
Solved
I have the following set up on my PC,
Ubuntu: 13.10,
NetBeans: 8.0,
Symfony: 2.4.3,
FOSRestBundle: 1.3.0,
and I have a "false" warning "unused use statement" in my code:
use FOS\RestBundle\Contro...
Sulfuric asked 15/4, 2014 at 4:35
1
Im trying to create an oauth2 server based on FOSOauthServerBundle, FOSRestBundle and FOSUserBundle. I created a demo application to test the my oauth-server and it failed receiving the data via th...
Protamine asked 14/1, 2013 at 8:2
2
Solved
Using Symfony2 and FOSRestBundle I am attempting to implement API methods that have some number of fixed parameters defined in the route along with some optional parameters that may exist in the qu...
Ebonee asked 8/12, 2012 at 20:31
1
Solved
Could someone show me a reference configuration of FOSRestBundle that will only allow json + xml and willd default to json if "Accepted" or "Content-Type" has not been set.
My goal is to drop the ...
Woodchopper asked 5/1, 2014 at 2:1
4
I am using Symfony 2.2 and the latest version of FOSRestBundle. So I have manage to make most of the actions work but I seem to have an issue with the FormBuilder that I am passing the Request of m...
Estrade asked 7/6, 2013 at 4:58
2
Solved
long story short:
Using FOSRestBundle I'm trying to create some entities via POST call, or modify existing via PUT.
here the code:
/**
* Put action
* @var Request $request
* @var integer $id I...
Syphilis asked 13/12, 2013 at 13:40
1
I need to support only single API format which is JSON and I don't like to {_format} in my routes. Is it possible to remove it?
Cotton asked 22/11, 2013 at 15:40
2
Solved
I've a problem with Symfony2 creating Rest API and using FOS\RestBundle
When I try to generate a database or an entity… Whatever I try to generate, an error occurs.
root@symfonyRest:/var/www/Symf...
Hafer asked 19/11, 2013 at 12:18
3
Solved
My corresponding configuration is
fos_rest:
view:
view_response_listener: force
sensio_framework_extra:
view:
annotations: false
and it really annoys to specify the route as
@Route("/jobs"...
Arachnid asked 16/10, 2013 at 4:5
2
Solved
I need implement RESTful API for my site on symfony 2, so i use FOSRestBundle + JMSSerializerBundle
I have such serializer yml for my entity:
Acme\DemoBundle\Entity\Product:
exclusion_policy: AL...
Mature asked 23/1, 2013 at 8:20
© 2022 - 2024 — McMap. All rights reserved.