mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
fixed file upload, styling, boolean/date/output inputs
This commit is contained in:
@@ -32,6 +32,8 @@ export enum IdentifierType {
|
||||
export abstract class RestRequest {
|
||||
public responseMsToLive = 10 * 1000;
|
||||
public forceBypassCache = false;
|
||||
public isMultipart = false;
|
||||
|
||||
constructor(
|
||||
public uuid: string,
|
||||
public href: string,
|
||||
@@ -74,6 +76,18 @@ export class PostRequest extends RestRequest {
|
||||
}
|
||||
}
|
||||
|
||||
export class MultipartPostRequest extends RestRequest {
|
||||
public isMultipart = true;
|
||||
constructor(
|
||||
public uuid: string,
|
||||
public href: string,
|
||||
public body?: any,
|
||||
public options?: HttpOptions
|
||||
) {
|
||||
super(uuid, href, RestRequestMethod.POST, body)
|
||||
}
|
||||
}
|
||||
|
||||
export class PutRequest extends RestRequest {
|
||||
constructor(
|
||||
public uuid: string,
|
||||
|
Reference in New Issue
Block a user