boussole-pluss/frontend/repositories/models/rest-response.model.ts

21 lines
330 B
TypeScript
Raw Normal View History

2022-10-07 14:15:53 +00:00
export interface RestLinks {
"_links": {
"self": {
"href": string;
}
}
}
export interface Page {
"page": {
"size": number;
"totalElements": number;
"totalPages": number;
"number": number;
}
}
export interface RestResponse<T> extends RestLinks, Page {
_embedded: { [key: string]: T[] };
}