openshift-online / maestro

Maestro Service Repo
Apache License 2.0
8 stars 15 forks source link

add resource bundle api. #106

Closed morvencao closed 4 weeks ago

morvencao commented 1 month ago

This PR add GET and List Resource Bundle API.

Get by Resource Bundle ID:

# curl -k -X GET -H "Content-Type: application/json" \
    https://maestro.${external_apps_domain}/api/maestro/v1/resource-bundles/68ebf474-6709-48bb-b760-386181268060

List All Resource Bundles:

# curl -k -X GET -H "Content-Type: application/json" \
    https://maestro.${external_apps_domain}/api/maestro/v1/resource-bundles

List Search by Consumer Name:

# curl -k -X GET -H "Content-Type: application/json" \
    https://maestro.${external_apps_domain}/api/maestro/v1/resource-bundles?search=consumer_name%3D%27cluster1%27

List Search By Consumer Name and Resource Bundle Name:

curl -k -X GET -H "Content-Type: application/json" \
    https://maestro.${external_apps_domain}/api/maestro/v1/resource-bundles?search=consumer_name%3D%27cluster1%27%20and%20name%3D%27resbundle1%27

ref: https://github.com/openshift-online/maestro/issues/103

morvencao commented 4 weeks ago

/assign @qiujian16 @clyang82 @skeeey

clyang82 commented 4 weeks ago

Could you update the README to include the resource_bundles api? maybe in grpc.md file?

morvencao commented 4 weeks ago

Added document for how to create resource bundle with gRPC API, and how to get/list resource bundle with the new restful API.