Git Product home page Git Product logo

Comments (8)

n1te1337 avatar n1te1337 commented on June 6, 2024

@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.

dhofstetter avatar dhofstetter commented on June 6, 2024

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.

tasmaniski avatar tasmaniski commented on June 6, 2024

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.

dhofstetter avatar dhofstetter commented on June 6, 2024

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.

tasmaniski avatar tasmaniski commented on June 6, 2024

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.

ss

from apigility-blog-example.

n1te1337 avatar n1te1337 commented on June 6, 2024

@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.

tasmaniski avatar tasmaniski commented on June 6, 2024

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.

n1te1337 avatar n1te1337 commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.