skip to Main Content

Laravel API URL not found

I am creating an API Laravel project and it seems that there an error I can't find. I want to get data from the table 'units'. These are the codes: bootstrap/app.php <?php use IlluminateFoundationApplication; use IlluminateFoundationConfigurationExceptions; use IlluminateFoundationConfigurationMiddleware; return Application::configure(basePath:…

VIEW QUESTION

Javascript – How to validate JSON response using JSON test data file?

Having JSON response with nested elements. I would like to validate it against JSON test data using Postman and test functions. For the moment I can easily reach it by hardcoding: const jsonData = pm.response.json(); pm.expect(jsonData.items[0].title).to.eql(pm.iterationData.get("title")); pm.expect(jsonData.items[1].title).to.eql(pm.iterationData.get("title")); here is my…

VIEW QUESTION
Back To Top
Search