tony133 / laravel-api-rest Goto Github PK
View Code? Open in Web Editor NEWSimple example of a API REST with Laravel 9.x
License: MIT License
Simple example of a API REST with Laravel 9.x
License: MIT License
Would you kindly help me with how to test this API in POSTMAN?
Thank you!
Hello,
I'm using your repo as a guide to make an API and I have a doubt. Hope you can help me.
When you have a related entity. For example, if the Book Author is another Author model. What's the best approach?
Now what I'm doing is in the BookResource, use 'author' => new AuthorResource( $this->author )
. It works, and it shows the information, but I suposse I'll have problems with recursivity easily.
Is there any feature like a "link"? I mean, in author show a link to the resource to get the author data like "API URL/authors/12".
Many thanks
Hello, I have created a tool that automatically generates unit tests of APIs created with Laravel.
I have analyzed this project and I would like you to try the tool with it so that you give me your opinion. I think that it's perfect to test my tool. It will not take you long and I would be very grateful.
Hi, thnx for this great nice restapi setup :-D Saved me a bunch of time ...
Though there is one minor thing, for the Curl with Authentication you should not send out plain username/email and password but base64 encode it.
Took me 10 minutes to fiddle why I got "Invalid credentials." all the time..
So basicly:
curl -H 'content-type: application/json' -v -X GET http://localhost:8000/api/books -H 'Authorization:Basic bWljaGllbEBhdWVyYmFjaC5ubDpXZWxjb21lMTIzNDU='
:-D
Keep up the great work!
Michiel
How can I create a user, to access API in this project?.
Hi,
I wrote some codes in laravel and want to use your code. Can I use this code with composer or any other solution for using your code inside my project?
thanks,
Congratulations, very good job.
Just one question, in this example you do not use the passport, right?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.