Questions tagged api

Explore the latest questions and answers asked by our top developers.

Using one formData to post to two table having foreign key

I’m learning Angular with ASP.NET and I have some problems. As I want to use one form in Angular to insert two SQL Server Tables using POST API from ASP.NET core. I have two Models created with EF code first on VS: public class Employee { [Key] public int EmployeeId { get; set; } [Column(TypeName […]

By t Nguy n
Published
Categorized as angular, api, asp.net-core, c#, sql-server Tagged , , , ,

Codeigniter 4 API with Angular : ‘http://localhost:4200’ has been blocked by CORS policy

Honestly, I’ve been struggling and trying every solution to overcome this issue caused by the Codeigniter API controller but unfortunately still not solved yet. So using angular and whenever I try to call this API: http://afma-cloud-api.synchronism.com/api/ I got CORS Error on the console saying : Access to XMLHttpRequest at ‘http://afma-cloud-api.synchronism.com/api/’ from origin ‘http://localhost:4200’ has been […]

By Amine Faiz
Published
Categorized as angular, api, codeigniter-4, cors, php Tagged , , , ,

if you’d like to avoid registering this form control, indicate that it’s standalone in ngModelOptions [closed]

in fact I am a beginner in Angular and there I ran into this problem but I am lost I found this problem in many questions in StackOverflow but no luck. Please help me figure out what I’m doing wrong. The 1st part of the code: <div *ngIf=”p==0″> <mat-stepper orientation=”vertical” #stepper> <!–rubrique 1 –> <mat-step […]

By ben salah mariem
Published
Categorized as angular, api, html, java, javascript Tagged , , , ,

integrate Dialogflow v2 with angular 11

i’m using dialogflow in application website but now stopped readonly toKen = environment.dialogFlow.chatbotAngular; readonly client = new ApiAiClient({accessToken : this.toKen}); conversation = new BehaviorSubject<Message[]>([]) constructor() { const botMessage = new Message(‘Bienvenue dans votre univers du chatbot,’ + ‘ puis-je vous aider ?’, ‘bot’,’./assets/media/Awb/chatbot.gif’,’botcolor’); this.update(botMessage); } playAudio() { let sound = new Audio(); sound.src = ‘./assets/media/to-the-point-568.ogg’; […]

By rymka
Published
Categorized as angular, api, chatbot, dialogflow-cx Tagged , , ,

IDX10503: Signature validation failed. Token does not have a kid

i have an issue while check the token, the scenario is: 1- Login and get the Token(EXP 20 min) & refresh_Token(EXP 30 min) and the creation of the token will be depends on the userID (system will pass this step). 2- Every 2 min the system will refresh the Tokens and in this step the […]

By Amer Qwaider
Published
Categorized as angular, api, asp.net, c#, jwt Tagged , , , ,

Facing problem using both headers and mode no-cors in fetch api angular

I am using angular 10 in my code. I am using fetch to bring the api response . I have to use both headers and mode:no-cors in my code to bring response but when I am using no-cors mode in my request headers are not appending to my request though without no-cors mode headers work […]

By Shilpi Jaiswal
Published
Categorized as angular, api, cors, fetch, header Tagged , , , ,

Submit File to Django API from Angular

I am using Django as my API and trying to upload Pdf file from Angular I have used the HttpModule to post the file with the name, company, year and document I have tested the post url on Postman and it works link to the postman API showing the post request was successful When I […]

By Harshil Siyani
Published
Categorized as angular, api, django Tagged , ,

Crystal reports returning 404 on api url after displaying some reports

I am using Crystal reports in my C# ASP.net project with angular. Crystal reports works fine for few times and displaying properly but after displaying some reports it return this errors Failed to load resource: the server responded with a status of 404 (Not Found) API URL : `http://localhost/api/Reports/RptComplaintDetail` I am disposing and closing report […]

By Muzaffar
Published
Categorized as angular, api, asp.net-mvc, c#, crystal-reports Tagged , , , ,

Why am I getting error during post url using angular

ERROR on zone.js:2863 POST Here is the URL https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyCcMcGPiHTG7D9JUYTzpmmUPY-HsRbyl7E 400. auth.services.ts file: import { HttpClient } from ‘@angular/common/http’; import { Injectable } from ‘@angular/core’; import { AuthResponce } from ‘./auth-inter-face/auth-responce’; import { config } from ‘./config’; @Injectable({ providedIn: ‘root’ }) export class AuthService { constructor(private http:HttpClient) { } signup(email:any,password:any){ return this.http.post<AuthResponce>(‘https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=’+ config.API_KEY,{ email:email, password:password, returnSecureToken:true […]

By Imran Shaik
Published
Categorized as angular, api, google-api, typescript Tagged , , ,

Disable sign-up in runtime (Angular + NestJS)

I’m developing a back-end (NestJS) and front-end (Angular) that, after the installation (no user in the database), it allows the adminitrator to sign up through the sign-up form. After the sign-up of the administrator, the application shall not allow other users to sign up, only by invitation from the administrator. I’m struggaling to figure out […]

By Gustavo Salom o
Published
Categorized as angular, api, nestjs, rest, web-services Tagged , , , ,
1 2 3 48

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq