skip to Main Content

how to access REST API in laravel 10?

I'm working on a project using laravel 10 that uses REST API but I'm getting a 404 not found error when I tried to test the url http://localhost/api/v1/continent with GET request in Postman. this is my routes/api.php: Route::prefix('v1')->name('v1.')->group(function() { Route::get('continent',…

VIEW QUESTION

How can I call a REST API in Php

Our client provided me with a REST API that requires a PHP call. However, the documentation accompanying the API is quite scanty, leaving me unsure about how to proceed with calling the service. I attempted to search for information online,…

VIEW QUESTION

Problem to get a product data with sp-amazon for PHp

I am building a small webapp with PHP and jlevers/selling-partner-api (https://github.com/jlevers/selling-partner-api). I need to recover the ASIN starting from EAN code. I have tried this: $catalogApi = $connector->catalogItems(); try { // EAN code of a product $ean = '3578830113254'; $marketplaceId…

VIEW QUESTION

Php – Unable to use a custom ValueResolver

I'm developing a Symfony 7 REST API. I'm following the official docs to implement a custom argument resolver to handle mapping of the request payload format that my endpoints are receiving to DTOs (https://symfony.com/doc/current/controller/value_resolver.html#adding-a-custom-value-resolver). Here's an example of a request…

VIEW QUESTION
Back To Top
Search