Category : json

This is backend code which is returning the data of array type app.get(‘/’, (req, res) => { dateModel.find((err, data) => { if (!err) { const today = new Date(); console.log(data); console.log(data[0].finalExpiryDate <= today.getDate()); res.status(200).send(data); } else { res.send(err); console.log(err); } }); }) This is service.ts file: getAllData(){ return this.http.get(this.baseUrl).pipe( map(result =>{ return <ExpiryDateModel[]>result; }) ); ..

Read more

I have the following step used in one of my cucumber scenarios Given("I begin a signing session that will allow me to sign my documents", async function(this: BuxtonWorld) { this.clientApi.setSourceSystem("BUXTON_MOCK_SIGNING"); const accessUrl = await this.clientApi.register(); await this.browser.navigate(accessUrl); }); This scenario utilizes a json that I recently had to modify. From "signatories": [ {..}, {…}] } ..

Read more

I’ve implement call API from file Json it working. But the problem is I want to change path API in file json without redeploy. I’ve try but it not working. It is possible to implement it? assets/config/config.json { "urls":{ "apiBaseUrl": "https://demored.ddns.net:59443", "path": "/demored/api" } } assets/config/config.ts const config = require("./config.json"); export const URLS = Object({ ..

Read more

I am using angular 12 and i want to display all fields given bellow in dictionary in my angular app so what method should i use output example backEnd=Python Flask domain=Image Processing and etc… dictionary { "Cmapus Security": { "backEnd": "Python Flask", "domain": "Image Processing", "frontEnd": "HTML CSS", "projectName": "Cmapus Security", "tages": "Image Processing", "youTube": ..

Read more