Comments (8)
@dhofstetter sorry for the late reply, I don't seem to be getting notifications from Github 😕
I've updated the code, the issue was caused by the breaking changes in input_filter
added in Apigility v1.0.0.
Please let me know if this fixes your problem.
from apigility-blog-example.
Thank you for fixing it, i was just recreating all fields in apigility and then I was able to see that the config files changes a bit ;) which lead me to the solution. I'm sorry that I havent said anything that I found the issue. But I also simply forgot that I asked you about that ;)
Br Daniel
from apigility-blog-example.
I have a fresh installation, when I try to register i got an error:
{
type: "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
title: "Bad Request"
status: 400
detail: "JSON decoding error: Syntax error, malformed JSON"
}
Admin part works properly, I can see that rest "register" is created.
Any thoughts?
from apigility-blog-example.
Can you give more detailed informations about your request? How do you perform the request, can you show us the payload?
Can you see the fields neccessary for register in the admin interface?
from apigility-blog-example.
I sent a POST request with header Content-Type "application/json" and params
username=[email protected]&password=testpass&firstname=Alexandar&lastname=Manicicici
Check screen shot please.
from apigility-blog-example.
@tasmaniski you're passing form values instead of json. Go to the "Raw" tab in the RestClient and paste:
{
"username": "[email protected]",
"password": "testpass",
"firstname": "Alexandar",
"lastname": "Manicicici"
}
You should also add a header for Content-Type of application/json
if you haven't already done so.
from apigility-blog-example.
Yap, thanks, I miss that :/
There is one error on missing service. In Auth\V1\Rest\Registration\RegistrationResource
public function getRegistrationService(){
return $this->getServiceManager()->get('Auth\V1\RegistrationService');
}
but there is no Auth\V1\RegistrationService in config file.
Adding this to end of modul Auth's config solve the error:
'service_manager' => array(
'invokables' => array(
'Auth\V1\RegistrationService' => 'Auth\V1\Rest\Registration\RegistrationService'
),
),
from apigility-blog-example.
Thanks I just fixed it, I must've deleted it when I was updating the code to work with 1.0.0
from apigility-blog-example.
Related Issues (6)
- Error in Entity HOT 1
- Running Locally
- 403 :( HOT 2
- Update to 1.1.0 - Unable to render UI HOT 2
- needs an update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apigility-blog-example.