All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
create_resource_relation | POST /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/relations | Create Resource Relation |
delete_resource_relation | DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/relations/{relation_id} | Delete Resource Relation |
get_resource_relation | GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/relations/{relation_id} | Get Resource Relation |
list_resource_relations | GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/relations | List Resource Relations |
models::RelationRead create_resource_relation(proj_id, env_id, resource_id, relation_create) Create Resource Relation
Creates a resource relation to another resource
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
resource_id | String | Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug"). | [required] | |
relation_create | RelationCreate | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_resource_relation(proj_id, env_id, resource_id, relation_id) Delete Resource Relation
Deletes a resource relation
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
resource_id | String | Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug"). | [required] | |
relation_id | String | Either the unique id of the relation, or the URL-friendly key of the relation (i.e: the "slug"). | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::RelationRead get_resource_relation(proj_id, env_id, resource_id, relation_id) Get Resource Relation
Get a resource relation
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
resource_id | String | Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug"). | [required] | |
relation_id | String | Either the unique id of the relation, or the URL-friendly key of the relation (i.e: the "slug"). | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::PaginatedResultRelationRead list_resource_relations(proj_id, env_id, resource_id, page, per_page) List Resource Relations
List relations on a given resource
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
resource_id | String | Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug"). | [required] | |
page | Option<i32> | Page number of the results to fetch, starting at 1. | [default to 1] | |
per_page | Option<i32> | The number of results per page (max 100). | [default to 30] |
models::PaginatedResultRelationRead
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]