mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-12 19:50:46 +01:00
fix org api paths
This commit is contained in:
parent
0a46513e38
commit
89e71d7c16
@ -125,16 +125,16 @@ export abstract class ApiService {
|
||||
getCollectionDetails: (organizationId: string, id: string) => Promise<CollectionGroupDetailsResponse>;
|
||||
getCollections: (organizationId: string) => Promise<ListResponse<CollectionResponse>>;
|
||||
getCollectionUsers: (organizationId: string, id: string) => Promise<ListResponse<CollectionUserResponse>>;
|
||||
postCollection: (request: CollectionRequest) => Promise<CollectionResponse>;
|
||||
putCollection: (id: string, request: CollectionRequest) => Promise<CollectionResponse>;
|
||||
deleteCollection: (id: string) => Promise<any>;
|
||||
postCollection: (organizationId: string, request: CollectionRequest) => Promise<CollectionResponse>;
|
||||
putCollection: (organizationId: string, id: string, request: CollectionRequest) => Promise<CollectionResponse>;
|
||||
deleteCollection: (organizationId: string, id: string) => Promise<any>;
|
||||
|
||||
getGroupDetails: (organizationId: string, id: string) => Promise<GroupDetailsResponse>;
|
||||
getGroups: (organizationId: string) => Promise<ListResponse<GroupResponse>>;
|
||||
getGroupUsers: (organizationId: string, id: string) => Promise<ListResponse<GroupUserResponse>>;
|
||||
postGroup: (request: GroupRequest) => Promise<GroupResponse>;
|
||||
putGroup: (id: string, request: GroupRequest) => Promise<GroupResponse>;
|
||||
deleteGroup: (id: string) => Promise<any>;
|
||||
postGroup: (organizationId: string, request: GroupRequest) => Promise<GroupResponse>;
|
||||
putGroup: (organizationId: string, id: string, request: GroupRequest) => Promise<GroupResponse>;
|
||||
deleteGroup: (organizationId: string, id: string) => Promise<any>;
|
||||
|
||||
getOrganizationUsers: (organizationId: string) => Promise<ListResponse<OrganizationUserUserDetailsResponse>>;
|
||||
|
||||
|
@ -383,18 +383,19 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return new ListResponse(r, CollectionUserResponse);
|
||||
}
|
||||
|
||||
async postCollection(request: CollectionRequest): Promise<CollectionResponse> {
|
||||
const r = await this.send('POST', '/collections', request, true, true);
|
||||
async postCollection(organizationId: string, request: CollectionRequest): Promise<CollectionResponse> {
|
||||
const r = await this.send('POST', '/organizations/' + organizationId + '/collections', request, true, true);
|
||||
return new CollectionResponse(r);
|
||||
}
|
||||
|
||||
async putCollection(id: string, request: CollectionRequest): Promise<CollectionResponse> {
|
||||
const r = await this.send('PUT', '/collections/' + id, request, true, true);
|
||||
async putCollection(organizationId: string, id: string, request: CollectionRequest): Promise<CollectionResponse> {
|
||||
const r = await this.send('PUT', '/organizations/' + organizationId + '/collections/' + id,
|
||||
request, true, true);
|
||||
return new CollectionResponse(r);
|
||||
}
|
||||
|
||||
deleteCollection(id: string): Promise<any> {
|
||||
return this.send('DELETE', '/collections/' + id, null, true, false);
|
||||
deleteCollection(organizationId: string, id: string): Promise<any> {
|
||||
return this.send('DELETE', '/organizations/' + organizationId + '/collections/' + id, null, true, false);
|
||||
}
|
||||
|
||||
// Groups APIs
|
||||
@ -416,18 +417,18 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return new ListResponse(r, GroupUserResponse);
|
||||
}
|
||||
|
||||
async postGroup(request: GroupRequest): Promise<GroupResponse> {
|
||||
const r = await this.send('POST', '/groups', request, true, true);
|
||||
async postGroup(organizationId: string, request: GroupRequest): Promise<GroupResponse> {
|
||||
const r = await this.send('POST', '/organizations/' + organizationId + '/groups', request, true, true);
|
||||
return new GroupResponse(r);
|
||||
}
|
||||
|
||||
async putGroup(id: string, request: GroupRequest): Promise<GroupResponse> {
|
||||
const r = await this.send('PUT', '/groups/' + id, request, true, true);
|
||||
async putGroup(organizationId: string, id: string, request: GroupRequest): Promise<GroupResponse> {
|
||||
const r = await this.send('PUT', '/organizations/' + organizationId + '/groups/' + id, request, true, true);
|
||||
return new GroupResponse(r);
|
||||
}
|
||||
|
||||
deleteGroup(id: string): Promise<any> {
|
||||
return this.send('DELETE', '/groups/' + id, null, true, false);
|
||||
deleteGroup(organizationId: string, id: string): Promise<any> {
|
||||
return this.send('DELETE', '/organizations/' + organizationId + '/groups/' + id, null, true, false);
|
||||
}
|
||||
|
||||
// Organization User APIs
|
||||
|
Loading…
Reference in New Issue
Block a user