GithubHelp home page GithubHelp logo

Comments (3)

lindyhopchris avatar lindyhopchris commented on August 16, 2024

You can just create an endpoint in exactly the way you would when using Laravel - i.e. register a route, write a controller.

If you want to return a JSON:API response from the controller, you can use one of the package's response classes:
https://laraveljsonapi.io/docs/3.0/responses/

from laravel.

juliorafaelr avatar juliorafaelr commented on August 16, 2024

Though the answer is perfect (and thanks!), you should always ask yourself, "why this guy asked that?" Or "why this happened" instead closing the ticket.

This note should be added to the "routing" section on the webpage routing.

I asked just because I was doing things wrong, and I couldn't figure that out. can someone add that note?

from laravel.

lindyhopchris avatar lindyhopchris commented on August 16, 2024

Hi! yeah, that's fair feedback. In response, I'd say that I find it really stressful having lots of open issues. So that's why I close things that realistically (factoring in everything else I need to do on the package) I'm not going to have time to do anything with.

If you'd like to submit a PR to the docs adding something for this scenario, that would be appreciated.

from laravel.

Related Issues (20)

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.