mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00
Finished patch support
This commit is contained in:
18
src/app/core/data/rest-request-method.ts
Normal file
18
src/app/core/data/rest-request-method.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Represents a Request Method.
|
||||
*
|
||||
* I didn't reuse the RequestMethod enum in @angular/http because
|
||||
* it uses numbers. The string values here are more clear when
|
||||
* debugging.
|
||||
*
|
||||
* The ones commented out are still unsupported in the rest of the codebase
|
||||
*/
|
||||
export enum RestRequestMethod {
|
||||
GET = 'GET',
|
||||
POST = 'POST',
|
||||
PUT = 'PUT',
|
||||
DELETE = 'DELETE',
|
||||
OPTIONS = 'OPTIONS',
|
||||
HEAD = 'HEAD',
|
||||
PATCH = 'PATCH'
|
||||
}
|
Reference in New Issue
Block a user