routes/api.php
Route::get('my-custom-api-url', function(Request $request, Configuration $configuration){
return response()->json([
"message" => "success",
"request" => $request->all(),
"configuration" => $configuration
], 200);
});
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
heys guys, i want to make a get request from a extrene api and create a endpoint using postman.
so i want make a get request in postman. with a address and i want to be able add a key and value in postman . With this creating a endpoint. But how do i do this in my [web.php or api.php route]??
How i do it now is like this. i just paste the url endpoint below but i want to do this with the route and postman.
public function show(Configuration $configuration)
{
$cool = $this->authenticate()->get('my end point static')->json();
please help me
routes/api.php
Route::get('my-custom-api-url', function(Request $request, Configuration $configuration){
return response()->json([
"message" => "success",
"request" => $request->all(),
"configuration" => $configuration
], 200);
});
Please or to participate in this conversation.