Skip to content

Backend ASP.Net Core junto a FirebaseStorage como base de datos multimedia y SQLServer como base de dato relacional

Notifications You must be signed in to change notification settings

AcoranGonzalezMoray/AplicacionASP.NETCore_RESTful

Repository files navigation

BACKEND ASP.NET CORE

Paquetes Nuget implicados:

  • microsoft.entityframeworkcore\7.0.10\
  • or microsoft.entityframeworkcore\7.0.10\
  • microsoft.entityframeworkcore.sqlserver\7.0.10\
  • swashbuckle.aspnetcore\6.5.0\
  • microsoft.aspnetcore.openapi\7.0.10\
  • firebasestorage.net\1.0.3\
  • microsoft.entityframeworkcore.tools\7.0.10\
  • firebaseauthentication.net\3.7.1\

Ejemplo Petición

  post(dog:DogElement, image:File):Observable<void>{

    const formData: FormData = new FormData();
    formData.append('DogData', JSON.stringify(dog)); // Convertir el objeto a JSON y agregarlo al FormData
    formData.append('image', image, image.name); // Agregar la imagen al FormData
   
    // Configurar las cabeceras con JWT
    let headers = new HttpHeaders({
      'Authorization': `Bearer ${token}`
    });

     // Configurar las cabeceras SIN JWT
     const headers = new HttpHeaders();
    headers.append('Content-Type', 'multipart/form-data');



    dog.imageUrl  =''


    return this.http.post<void>(`${this.myApiurl}${this.myAppUrl}`,formData,{ headers: headers });
  }

About

Backend ASP.Net Core junto a FirebaseStorage como base de datos multimedia y SQLServer como base de dato relacional

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages