to create the REST APIS in the node application Creating a folder structure Open image-20240422-093737.png ├── config/ └── db.js ├── models/ └── Student.js ├── routes/ └── studentRoutes.js ├── controllers/ └── studentController.js ├── app.js └── package.json app.js File const express = require(‘express’) const app = express(); const Student = require(‘./models/student’) const mongoose = require(‘mongoose’); const studentRoutes… Continue reading How to create a REST API with Node.js and Express
Tag: API call
How to test any API request from Edge browser
You can test most of the API requests from the edge browser itself using the ‘Network console’. This functionality is available in the latest versions of the Edge browser. This can be used instead of the ‘Postman’ application in case it is not available or not working. For this follow these steps: 1. Open the… Continue reading How to test any API request from Edge browser
How to get the commerce category item details using API?
It’s possible that we can get the item details through the API using this method. With this approach, we can fetch all item details and manually specify the commerce category ID in the API link. categoryresponse: function () { try { var APIresponse =… Continue reading How to get the commerce category item details using API?
Generate Credentials for Authentication In Magento/Adobe
Follow the steps to generate credentials for Calling API from Magento Settings —-> Integrations —–>Add New Integrations provide Name, Email ID, Current login Password Click Save 4.Select Resource Access to All in API subtab 4.Click Save 5. Click on Activate link corresponding to the Integration Created. 6.Click Allow for Granting access Credentials will be generated.