Skip to content

Commit

Permalink
update ns --> gw in API endpoint names and descriptions
Browse files Browse the repository at this point in the history
* rename namespace-profile endpoint

* update ns --> gw in API descriptions

* delete routes.ts and openapi.yaml (generated during build)
  • Loading branch information
rustyjux authored Dec 17, 2024
1 parent cc306eb commit 091b77e
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 3,468 deletions.
4 changes: 2 additions & 2 deletions src/controllers/v3/DatasetController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class DatasetController extends Controller {

/**
* Update metadata about a Dataset
* > `Required Scope:` Namespace.Manage
* > `Required Scope:` Gateway.Manage
*
* @summary Update Dataset
*/
Expand All @@ -66,7 +66,7 @@ export class DatasetController extends Controller {

/**
* Get metadata about a Dataset
* > `Required Scope:` Namespace.Manage
* > `Required Scope:` Gateway.Manage
*
* @summary Get Dataset
*/
Expand Down
16 changes: 8 additions & 8 deletions src/controllers/v3/GatewayController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ export class NamespaceController extends Controller {

/**
* Get details about the gateway, such as permissions for what the gateway is setup with.
* > `Required Scope:` Namespace.Manage
* > `Required Scope:` Gateway.Manage
*
* @summary Gateway Summary
* @param ns
* @param request
* @returns
*/
@Get('/{gatewayId}')
@OperationId('namespace-profile')
@OperationId('gateway-profile')
@Security('jwt', ['Namespace.Manage'])
public async profile(
@Path() gatewayId: string,
Expand Down Expand Up @@ -174,7 +174,7 @@ export class NamespaceController extends Controller {
errors[`d${ind}`] = { message: err.message };
});
logger.error('%j', result);
throw new ValidateError(errors, 'Unable to create namespace');
throw new ValidateError(errors, 'Unable to create Gateway');
}
return {
gatewayId: result.data.createNamespace.name,
Expand All @@ -184,15 +184,15 @@ export class NamespaceController extends Controller {

/**
* Delete the gateway
* > `Required Scope:` Namespace.Manage
* > `Required Scope:` Gateway.Manage
*
* @summary Delete Gateway
* @param ns
* @param request
* @returns
*/
@Delete('/{gatewayId}')
@OperationId('delete-namespace')
@OperationId('delete-gateway')
@Security('jwt', ['Namespace.Manage'])
public async delete(
@Path() gatewayId: string,
Expand All @@ -218,9 +218,9 @@ export class NamespaceController extends Controller {
}

/**
* > `Required Scope:` Namespace.View
* > `Required Scope:` Gateway.View
*
* @summary Get administration activity for this gateway
* @summary Get administration activity for this Gateway
* @param ns
* @param first
* @param skip
Expand Down Expand Up @@ -251,7 +251,7 @@ export class NamespaceController extends Controller {

/**
* Get a summary of your endpoints
* > `Required Scope:` Namespace.Manage
* > `Required Scope:` Gateway.Manage
*
* @summary Get endpoints
*/
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/v3/GatewayDirectoryController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class GatewayDirectoryController extends Controller {

/**
* Used primarily for "Preview Mode"
* List the datasets belonging to a particular namespace
* List the datasets belonging to a particular Gateway
*
* @param ns
* @param name
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/v3/GatewayServicesController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class GatewayController extends Controller {

/**
* Get a summary of your Gateway Services
* > `Required Scope:` Namespace.Manage
* > `Required Scope:` Gateway.Manage
*
* @summary Get Gateway Services
*/
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/v3/IssuerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export class IssuerController extends Controller {
}

/**
* Get Authorization Profiles setup in this namespace
* > `Required Scope:` Namespace.Manage
* Get Authorization Profiles setup in this Gateway
* > `Required Scope:` Gateway.Manage
*
* @summary Get Authorization Profiles
*/
Expand Down
12 changes: 6 additions & 6 deletions src/controllers/v3/OrganizationController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class OrganizationController extends Controller {
}

/**
* > `Required Scope:` Namespace.Assign
* > `Required Scope:` Gateway.Assign
*/
@Get('{org}/gateways')
@OperationId('organization-gateways')
Expand All @@ -196,7 +196,7 @@ export class OrganizationController extends Controller {
}

/**
* > `Required Scope:` Namespace.Assign
* > `Required Scope:` Gateway.Assign
*/
@Put('{org}/{orgUnit}/gateways/{gatewayId}')
@OperationId('assign-namespace-to-organization')
Expand Down Expand Up @@ -231,7 +231,7 @@ export class OrganizationController extends Controller {
}

/**
* > `Required Scope:` Namespace.Assign
* > `Required Scope:` Gateway.Assign
*/
@Delete('{org}/{orgUnit}/gateways/{gatewayId}')
@OperationId('unassign-namespace-from-organization')
Expand Down Expand Up @@ -265,16 +265,16 @@ export class OrganizationController extends Controller {
}

/**
* > `Required Scope:` Namespace.Assign
* > `Required Scope:` Gateway.Assign
*
* @summary Get administration activity for gateways associated with this Organization
* @summary Get administration activity for Gateways associated with this Organization
* @param org
* @param first
* @param skip
* @returns Activity[]
*/
@Get('{org}/activity')
@OperationId('org-namespace-activity')
@OperationId('org-gateway-activity')
@Security('jwt', ['Namespace.Assign'])
public async namespaceActivity(
@Path() org: string,
Expand Down
Loading

0 comments on commit 091b77e

Please sign in to comment.