Skip to content

Commit

Permalink
docs: add docs about new Package Descriptor retrieval RESTapi endpoin…
Browse files Browse the repository at this point in the history
…t [backport docs-release-5.4] (#4967)

docs: add docs about new Package Descriptor retrieval RESTapi endpoint (#4955)

* docs: add docs about new Package Descriptor retrieval RESTapi endpoint

* docs: GET -> PUT

(cherry picked from commit d00b571)

Co-authored-by: Mattia Dal Ben <[email protected]>
  • Loading branch information
github-actions[bot] and mattdibi authored Nov 13, 2023
1 parent e44db4a commit dd488b5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/references/rest-apis/rest-deploy-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,39 @@ curl -X POST -k -u $USERNAME:$PASSWORD \
"REQUEST_RECEIVED"
```

#### Get Eclipse Marketplace Package Descriptor
- Description: Provides the Eclipse Marketplace Package Descriptor information of the deployment package identified by URL passed in the request.
- Method: PUT
- API PATH: `/deploy/v2/_packageDescriptor`

##### Request Body

```json
{
"url": "deploymentPackageUrl"
}
```

Example:

```json
{
"url": "http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=5514714"
}
```

##### Responses
- 200 OK status
- 400 Bad request

```json
{
"nodeId":"5514714",
"url":"https://marketplace.eclipse.org/content/ai-wire-component-eclipse-kura-5",
"dpUrl":"https://download.eclipse.org/kura/releases/5.3.0/org.eclipse.kura.wire.ai.component.provider-1.2.0.dp",
"minKuraVersion":"5.1.0",
"maxKuraVersion":"",
"currentKuraVersion":"5.4.0",
"isCompatible":true
}
```

0 comments on commit dd488b5

Please sign in to comment.