"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/shared/mocks/dspace-rest/mocks/response-map.mock.ts" between
dspace-angular-dspace-7.0.tar.gz and dspace-angular-dspace-7.1.tar.gz

About: dspace-angular is the Angular-based frontend of DSpace, a digital repository system to capture, store, index, preserve and redistribute an organization’s research material in digital formats.

response-map.mock.ts  (dspace-angular-dspace-7.0):response-map.mock.ts  (dspace-angular-dspace-7.1)
import { InjectionToken } from '@angular/core'; import { InjectionToken } from '@angular/core';
// import mockSubmissionResponse from './mock-submission-response.json'; // import mockSubmissionResponse from './mock-submission-response.json';
// import mockPublicationResponse from './mock-publication-response.json'; // import mockPublicationResponse from './mock-publication-response.json';
// import mockUntypedItemResponse from './mock-untyped-item-response.json'; // import mockUntypedItemResponse from './mock-untyped-item-response.json';
import mockFeatureItemCanManageBitstreamsResponse from './mock-feature-item-can-
manage-bitstreams-response.json';
import mockFeatureItemCanManageRelationshipsResponse from './mock-feature-item-c
an-manage-relationships-response.json';
import mockFeatureItemCanManageVersionsResponse from './mock-feature-item-can-ma
nage-versions-response.json';
import mockFeatureItemCanManageMappingsResponse from './mock-feature-item-can-ma
nage-mappings-response.json';
export class ResponseMapMock extends Map<string, any> {} export class ResponseMapMock extends Map<string, any> {}
export const MOCK_RESPONSE_MAP: InjectionToken<ResponseMapMock> = new InjectionT oken<ResponseMapMock>('mockResponseMap'); export const MOCK_RESPONSE_MAP: InjectionToken<ResponseMapMock> = new InjectionT oken<ResponseMapMock>('mockResponseMap');
/** /**
* List of endpoints with their matching mock response * List of endpoints with their matching mock response
* Note that this list is only used in development mode * Note that this list is only used in development mode
* In production the actual endpoints on the REST server will be called * In production the actual endpoints on the REST server will be called
*/ */
export const mockResponseMap: ResponseMapMock = new Map([ export const mockResponseMap: ResponseMapMock = new Map([
// [ '/config/submissionforms/traditionalpageone', mockSubmissionResponse ] // [ '/config/submissionforms/traditionalpageone', mockSubmissionResponse ]
// [ '/api/pid/find', mockPublicationResponse ], // [ '/api/pid/find', mockPublicationResponse ],
// [ '/api/pid/find', mockUntypedItemResponse ], // [ '/api/pid/find', mockUntypedItemResponse ],
[ 'https://api7.dspace.org/server/api/authz/authorizations/search/object?uri=h
ttps://api7.dspace.org/server/api/core/items/96715576-3748-4761-ad45-00164663296
3&feature=canManageBitstreams&embed=feature', mockFeatureItemCanManageBitstreams
Response ],
[ 'https://api7.dspace.org/server/api/authz/authorizations/search/object?uri=h
ttps://api7.dspace.org/server/api/core/items/047556d1-3d01-4c53-bc68-0cee7ad7ed4
e&feature=canManageRelationships&embed=feature', mockFeatureItemCanManageRelatio
nshipsResponse ],
[ 'https://api7.dspace.org/server/api/authz/authorizations/search/object?uri=h
ttps://api7.dspace.org/server/api/core/items/e98b0f27-5c19-49a0-960d-eb6ad528706
7&feature=canManageVersions&embed=feature', mockFeatureItemCanManageVersionsResp
onse ],
[ 'https://api7.dspace.org/server/api/authz/authorizations/search/object?uri=h
ttps://api7.dspace.org/server/api/core/items/e98b0f27-5c19-49a0-960d-eb6ad528706
7&feature=canManageMappings&embed=feature', mockFeatureItemCanManageMappingsResp
onse ],
]); ]);
 End of changes. 2 change blocks. 
24 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)