|
1 | 1 | # Java Client Library (beta) |
2 | 2 |
|
3 | | -* Latest released version 0.9.3 |
4 | | -* Latest snapshot version 0.10.0-SNAPSHOT |
| 3 | +* Latest released version 0.10.1 |
| 4 | +* Latest snapshot version 0.11.0-SNAPSHOT |
5 | 5 |
|
6 | 6 | ## Introduction |
7 | 7 | Welcome my friends! This is the Poly API Java client GitHub page. If you are here, then it means you're familiar with what we do at Poly. If you aren't, you can always check [here](https://github.com/polyapi/poly-alpha). |
@@ -55,7 +55,7 @@ Nice to have some customers looking around here! So, you'll need to run the foll |
55 | 55 | 2. **Update the project.** Add the following to your project's `pom.xml`: |
56 | 56 | ```xml |
57 | 57 | <properties> |
58 | | - <poly.version>0.9.3</poly.version> |
| 58 | + <poly.version>0.10.1</poly.version> |
59 | 59 | </properties> |
60 | 60 | <dependencies> |
61 | 61 | <dependency> |
@@ -227,6 +227,22 @@ Here's the list of parameters: |
227 | 227 | - **functions:** Comma separated value containing the names of the functions to deploy. The functions must be annotated with the `@PolyFunction` annotation as it is described. This parameter triggers a filter by function name and/or context + function name in the `[context].[functionName]` format. Each comma separated value will be taken independently and deployed. |
228 | 228 | - **dry-run:** Flag that when added makes the MOJO prepare everything for a deployment but not do it. This is for debugging purposes. |
229 | 229 |
|
| 230 | +#### delete-function |
| 231 | +This MOJO doesn't require a project to run. |
| 232 | + |
| 233 | +It deletes a server/client/api/auth function, webhook or variable from the Poly server. It can take 2 types of inputs: |
| 234 | + - **id**: Deletes the entity with the matching ID. |
| 235 | + - **contxt/function name**: Deletes the entity that matches the context and function name. It's case insensitive, but will fall back to be case sensitive in case that there are 2 or more matches with different cases. If none of those cases match exactly, it will throw an error. |
| 236 | + |
| 237 | +##### Parameters |
| 238 | +Here's the list of parameters: |
| 239 | +- **host (required):** The host where the Poly API instance is hosted. |
| 240 | +- **port:** The port that the Poly API instance is listening to. Default value is 443. |
| 241 | +- **apiKey (required):** The API key required to authenticate to Poly. |
| 242 | +- **id:** ID of the entity to delete. Cannot coexist with either `functionName` nor `context` arguments. |
| 243 | +- **functionName:** Name of the function to delete. Cannot coexist with `id` argument. Mandatory unless `id` is set. |
| 244 | +- **context:** Context of the function to delete. Cannot coexist with `id` argument. Mandatory unless `id` is set. |
| 245 | + |
230 | 246 | <a name="project-usage"></a> |
231 | 247 | ## Usage |
232 | 248 |
|
|
0 commit comments