Skip to content

Commit

Permalink
Merge pull request #12698 from PasanT9/apiid-Q
Browse files Browse the repository at this point in the history
Update apiId-Q description
  • Loading branch information
PasanT9 authored Nov 29, 2024
2 parents 1447887 + c7e1d37 commit 7fc5277
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13948,9 +13948,7 @@ components:
name: apiId
in: query
description: |
**API ID** consisting of the **UUID** of the API.
The combination of the provider of the API, name of the API and the version is also accepted as a valid API I.
Should be formatted as **provider-name-version**.
**API ID** consisting of the **UUID** of the API**.
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public Response apisApiIdEnvironmentsEnvIdKeysPut(@ApiParam(value = "**API ID**
@ApiResponse(code = 404, message = "Not Found. The specified resource does not exist.", response = ErrorDTO.class),
@ApiResponse(code = 409, message = "Conflict. Specified resource already exists.", response = ErrorDTO.class),
@ApiResponse(code = 412, message = "Precondition Failed. The request has not been performed because one of the preconditions is not met.", response = ErrorDTO.class) })
public Response changeAPILifecycle( @NotNull @ApiParam(value = "The action to demote or promote the state of the API. Supported actions are [ **Publish**, **Deploy as a Prototype**, **Demote to Created**, **Block**, **Deprecate**, **Re-Publish**, **Retire** ] ",required=true, allowableValues="Publish, Deploy as a Prototype, Demote to Created, Block, Deprecate, Re-Publish, Retire") @QueryParam("action") String action, @NotNull @ApiParam(value = "**API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. ",required=true) @QueryParam("apiId") String apiId, @ApiParam(value = " Supported checklist items are as follows. 1. **Deprecate old versions after publishing the API**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Requires re-subscription when publishing the API**: If you set this to true, users need to re subscribe to the API although they may have subscribed to an older version. You can specify additional checklist items by using an **\"attribute:\"** modifier. Eg: \"Deprecate old versions after publishing the API:true\" will deprecate older versions of a particular API when it is promoted to Published state from Created state. Multiple checklist items can be given in \"attribute1:true, attribute2:false\" format. **Sample CURL :** curl -k -H \"Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8\" -X POST \"https://localhost:9443/api/am/publisher/v4/apis/change-lifecycle?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish&lifecycleChecklist=Deprecate%20old%20versions%20after%20publishing%20the%20API%3Atrue,Requires%20re-subscription%20when%20publishing%20the%20API%3Afalse\" ") @QueryParam("lifecycleChecklist") String lifecycleChecklist, @ApiParam(value = "Validator for conditional requests; based on ETag. " )@HeaderParam("If-Match") String ifMatch) throws APIManagementException{
public Response changeAPILifecycle( @NotNull @ApiParam(value = "The action to demote or promote the state of the API. Supported actions are [ **Publish**, **Deploy as a Prototype**, **Demote to Created**, **Block**, **Deprecate**, **Re-Publish**, **Retire** ] ",required=true, allowableValues="Publish, Deploy as a Prototype, Demote to Created, Block, Deprecate, Re-Publish, Retire") @QueryParam("action") String action, @NotNull @ApiParam(value = "**API ID** consisting of the **UUID** of the API**. ",required=true) @QueryParam("apiId") String apiId, @ApiParam(value = " Supported checklist items are as follows. 1. **Deprecate old versions after publishing the API**: Setting this to true will deprecate older versions of a particular API when it is promoted to Published state from Created state. 2. **Requires re-subscription when publishing the API**: If you set this to true, users need to re subscribe to the API although they may have subscribed to an older version. You can specify additional checklist items by using an **\"attribute:\"** modifier. Eg: \"Deprecate old versions after publishing the API:true\" will deprecate older versions of a particular API when it is promoted to Published state from Created state. Multiple checklist items can be given in \"attribute1:true, attribute2:false\" format. **Sample CURL :** curl -k -H \"Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8\" -X POST \"https://localhost:9443/api/am/publisher/v4/apis/change-lifecycle?apiId=890a4f4d-09eb-4877-a323-57f6ce2ed79b&action=Publish&lifecycleChecklist=Deprecate%20old%20versions%20after%20publishing%20the%20API%3Atrue,Requires%20re-subscription%20when%20publishing%20the%20API%3Afalse\" ") @QueryParam("lifecycleChecklist") String lifecycleChecklist, @ApiParam(value = "Validator for conditional requests; based on ETag. " )@HeaderParam("If-Match") String ifMatch) throws APIManagementException{
return delegate.changeAPILifecycle(action, apiId, lifecycleChecklist, ifMatch, securityContext);
}

Expand Down Expand Up @@ -374,7 +374,7 @@ public Response createAPIRevision(@ApiParam(value = "**API ID** consisting of th
@ApiResponse(code = 201, message = "Created. Successful response with the newly created API as entity in the body. Location header contains URL of newly created API. ", response = APIDTO.class),
@ApiResponse(code = 400, message = "Bad Request. Invalid request or validation error.", response = ErrorDTO.class),
@ApiResponse(code = 404, message = "Not Found. The specified resource does not exist.", response = ErrorDTO.class) })
public Response createNewAPIVersion( @NotNull @Size(max=30) @ApiParam(value = "Version of the new API.",required=true) @QueryParam("newVersion") String newVersion, @NotNull @ApiParam(value = "**API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. ",required=true) @QueryParam("apiId") String apiId, @ApiParam(value = "Specifies whether new API should be added as default version.", defaultValue="false") @DefaultValue("false") @QueryParam("defaultVersion") Boolean defaultVersion, @ApiParam(value = "Version of the Service that will used in creating new version") @QueryParam("serviceVersion") String serviceVersion) throws APIManagementException{
public Response createNewAPIVersion( @NotNull @Size(max=30) @ApiParam(value = "Version of the new API.",required=true) @QueryParam("newVersion") String newVersion, @NotNull @ApiParam(value = "**API ID** consisting of the **UUID** of the API**. ",required=true) @QueryParam("apiId") String apiId, @ApiParam(value = "Specifies whether new API should be added as default version.", defaultValue="false") @DefaultValue("false") @QueryParam("defaultVersion") Boolean defaultVersion, @ApiParam(value = "Version of the Service that will used in creating new version") @QueryParam("serviceVersion") String serviceVersion) throws APIManagementException{
return delegate.createNewAPIVersion(newVersion, apiId, defaultVersion, serviceVersion, securityContext);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13948,9 +13948,7 @@ components:
name: apiId
in: query
description: |
**API ID** consisting of the **UUID** of the API.
The combination of the provider of the API, name of the API and the version is also accepted as a valid API I.
Should be formatted as **provider-name-version**.
**API ID** consisting of the **UUID** of the API**.
required: true
schema:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12093,9 +12093,7 @@ components:
name: apiId
in: query
description: |
**API ID** consisting of the **UUID** of the API.
The combination of the provider of the API, name of the API and the version is also accepted as a valid API I.
Should be formatted as **provider-name-version**.
**API ID** consisting of the **UUID** of the API**.
required: true
schema:
type: string
Expand Down

0 comments on commit 7fc5277

Please sign in to comment.