feat: récupération sommaire des groupes de tâches
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { GroupService } from './group-service';
|
||||
|
||||
describe('GroupService', () => {
|
||||
let service: GroupService;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
service = TestBed.inject(GroupService);
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Service } from '@angular/core';
|
||||
import { BaseService } from './base.service';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Group } from '../model/Group';
|
||||
@Service()
|
||||
export class GroupService extends BaseService{
|
||||
public getGroups():Observable<Group[]>{
|
||||
return this.get<Group[]>("http://127.0.0.1:8080/group");
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Service } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Task } from '../model/Task';
|
||||
import { BaseService } from './base-service';
|
||||
import { BaseService } from './base.service';
|
||||
|
||||
@Service()
|
||||
export class TaskService extends BaseService{
|
||||
Reference in New Issue
Block a user