Skip to content

Instantly share code, notes, and snippets.

[
{
"demandCatalogId": 1,
"catalogName": "Commercial business (G0)",
"description": "Commercial general (weighted average of profiles G1-G6)",
"languageCultureType": "EN",
"filePathName": null,
"isActive": true
},
{
[{"id":1,"season":2008,"city":"Bangalore","date":"18-04-08","team1":"Kolkata Knight Riders","team2":"Royal Challengers Bangalore","toss_winner":"Royal Challengers Bangalore","toss_decision":"field","result":"normal","dl_applied":0,"winner":"Kolkata Knight Riders","win_by_runs":140,"win_by_wickets":0,"player_of_match":"BB McCullum","venue":"M Chinnaswamy Stadium","umpire1":"Asad Rauf","umpire2":"RE Koertzen","umpire3":""},{"id":2,"season":2008,"city":"Chandigarh","date":"19-04-08","team1":"Chennai Super Kings","team2":"Kings XI Punjab","toss_winner":"Chennai Super Kings","toss_decision":"bat","result":"normal","dl_applied":0,"winner":"Chennai Super Kings","win_by_runs":33,"win_by_wickets":0,"player_of_match":"MEK Hussey","venue":"Punjab Cricket Association Stadium, Mohali","umpire1":"MR Benson","umpire2":"SL Shastri","umpire3":""},{"id":3,"season":2008,"city":"Delhi","date":"19-04-08","team1":"Rajasthan Royals","team2":"Delhi Daredevils","toss_winner":"Rajasthan Royals","toss_decision":"bat","result":"normal",
{"api_version":"1.0","bugged_versions":[],"message":"","body":{"Recommendations":[{"RestaurantID":"36407","minimum":10,"payment_types":["credit","gift card","promotions","cash"],"delivery_charge":"0","phone":"212-319-9148","num_ratings":"49","overall_rating":"89","merchant_score":"","location":{"zip":"10022","distance":0.35115565893431,"city":"NEW YORK","street":"122 E 57TH ST","state":"NY"},"RestaurantName":"palace restaurant","items_not_found":[],"delivery_percent":"0","menu":[{"min_selection":1,"max_selection":1,"id":20,"description":"","type":"sectionheader","name":"hamburger","children":[{"selected":1,"quantity":1,"warning":[],"instruction":"hamburger","children":[{"selected":1,"children":[{"selected":0,"children":[],"entity":[""],"name":"coleslaw","id":"PE-36407-1-63-64-794-798","price":"3.5","type":"option","max_price":"0","description":""},{"selected":0,"children":[{"selected":0,"children":[{"selected":1,"children":[],"entity":[""],"name":"honey mustard dressing","id":"PE-36407-1-63-64-794-795-210-217
[{"availabletime":"11:00-15:30","category":"Chinese Combos","description":"","name":"Egg Chinese Combo","price":100,"vegflag":"nonveg"},{"availabletime":"11:00-15:30","category":"Chinese Combos","description":"Chilli Garlic Chicken, Vegetable Fried Rice/ Noodles, Hong Kong Sauce","name":"Chicken Chinese Combo","price":110,"vegflag":"nonveg"},{"availabletime":"11:00-15:30","category":"Chinese Combos","description":"","name":"Lebanese Falafal Pockets","price":120,"vegflag":"veg"},{"availabletime":"11:00-15:30","category":"Chinese Combos","description":"","name":"Lebanese Chicken Pockets","price":150,"vegflag":"nonveg"},{"availabletime":"00:00-23:59","category":"Chinese Starter","description":"","name":"Mexican Veg Nachos","price":120,"vegflag":"veg"},{"availabletime":"00:00-23:59","category":"Chinese Starter","description":"","name":"Mexican Non Veg Nachos","price":150,"vegflag":"nonveg"},{"availabletime":"00:00-23:59","category":"Chinese Starter","description":"","name":"Indonesian Nasi Goreng Tofu","price":1
{
"data": [{
"name": "User_1",
"birthDate": "05/11/1990",
"designation": "Sr. Developer",
"companyName": "Knoldus",
"mobile": "8899033456",
"email": "user1@knoldus.in",
"gender": "Male",
"about": "Backend REST API"
export class UserProfileComponent implements OnInit {
profileDataOfUser: IFixtureUserProfile;
insertObjectInArray = [];
constructor(private user: UserProfileService) { }
ngOnInit() {
this.getProfileData();
}
getProfileData(): void {
import { Injectable } from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {Observable} from "rxjs";
@Injectable()
export class UserProfileService {
url = 'http://localhost:3005';
constructor(private http: HttpClient) { }
getMockData(): Observable<any> {
{
"data": [{
"name": "User_1",
"birthDate": "05/11/1990",
"designation": "Sr. Developer",
"companyName": "Knoldus",
"mobile": "8899033456",
"email": "user1@knoldus.in",
"gender": "Male",
"about": "Backend REST API"