Skip to main content

Distribution API

All URIs are relative to http://localhost:1000

MethodHTTP requestDescription
distributionUpdatePOST /distribution/update/distribution/update [POST]
distributionsSpecificDistributionSnapshotGET /distribution/{distribution}/distribution/{distribution} [GET]

distributionUpdate

Distribution distributionUpdate(distribution)

/distribution/update [POST]

This will update a specific Distribution.

Example

// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*

val apiInstance = DistributionApi()
val distribution : Distribution = // Distribution |
try {
val result : Distribution = apiInstance.distributionUpdate(distribution)
println(result)
} catch (e: ClientException) {
println("4xx response calling DistributionApi#distributionUpdate")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DistributionApi#distributionUpdate")
e.printStackTrace()
}

Parameters

NameTypeDescriptionNotes
distributionDistribution[optional]

Return type

Distribution

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

distributionsSpecificDistributionSnapshot

Distribution distributionsSpecificDistributionSnapshot(distribution)

/distribution/{distribution} [GET]

This will get a specific snapshot of a distribution.

Example

// Import classes:
import app.pieces.pieces-os-client.infrastructure.*
import app.pieces.pieces-os-client.models.*

val apiInstance = DistributionApi()
val distribution : kotlin.String = distribution_example // kotlin.String | This is the uuid of a specific distribution.
try {
val result : Distribution = apiInstance.distributionsSpecificDistributionSnapshot(distribution)
println(result)
} catch (e: ClientException) {
println("4xx response calling DistributionApi#distributionsSpecificDistributionSnapshot")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling DistributionApi#distributionsSpecificDistributionSnapshot")
e.printStackTrace()
}

Parameters

NameTypeDescriptionNotes
distributionkotlin.StringThis is the uuid of a specific distribution.

Return type

Distribution

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json