mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
merge
This commit is contained in:
@@ -6,12 +6,12 @@ import { EventOutputDTO } from './model/eventDTOOutput';
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
|
||||
export class AgendaDataService {
|
||||
private baseUrl = 'https://gdapi-dev.dyndns.info/stage/api/v2'; // Your base URL
|
||||
|
||||
constructor(private http: HttpClient) { }
|
||||
|
||||
// Contacts Endpoints
|
||||
getContacts(value: string): Observable<any> {
|
||||
const params = new HttpParams().set('value', value);
|
||||
return this.http.get<any>(`${this.baseUrl}/Contacts`, { params });
|
||||
@@ -45,6 +45,10 @@ export class AgendaDataService {
|
||||
return this.http.get<any>(`${this.baseUrl}/Events`, { params });
|
||||
}
|
||||
|
||||
getEvent(id: string): Observable<any> {
|
||||
return this.http.get<any>(`${this.baseUrl}/Events/${id}`);
|
||||
}
|
||||
|
||||
updateEvent(id: string, eventData: any): Observable<any> {
|
||||
return this.http.put<any>(`${this.baseUrl}/Events/${id}`, eventData);
|
||||
}
|
||||
@@ -53,10 +57,6 @@ export class AgendaDataService {
|
||||
return this.http.patch<any>(`${this.baseUrl}/Events/${id}/Approval`, {});
|
||||
}
|
||||
|
||||
getEvent(id: string): Observable<any> {
|
||||
return this.http.get<any>(`${this.baseUrl}/Events/${id}`);
|
||||
}
|
||||
|
||||
deleteEvent(id: string, deleteAllEvents: boolean): Observable<any> {
|
||||
const params = new HttpParams().set('DeleteAllEvents', deleteAllEvents.toString());
|
||||
return this.http.delete<any>(`${this.baseUrl}/Events/${id}`, { params });
|
||||
@@ -92,6 +92,7 @@ export class AgendaDataService {
|
||||
return this.http.get<any>(`${this.baseUrl}/Users`, { params });
|
||||
}
|
||||
|
||||
|
||||
getToken(): Observable<any> {
|
||||
return this.http.get<any>(`${this.baseUrl}/Users/token`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user