github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/rust/docs/CommitsApi.md (about) 1 # \CommitsApi 2 3 All URIs are relative to */api/v1* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**commit**](CommitsApi.md#commit) | **POST** /repositories/{repository}/branches/{branch}/commits | create commit 8 [**get_commit**](CommitsApi.md#get_commit) | **GET** /repositories/{repository}/commits/{commitId} | get commit 9 10 11 12 ## commit 13 14 > models::Commit commit(repository, branch, commit_creation, source_metarange) 15 create commit 16 17 ### Parameters 18 19 20 Name | Type | Description | Required | Notes 21 ------------- | ------------- | ------------- | ------------- | ------------- 22 **repository** | **String** | | [required] | 23 **branch** | **String** | | [required] | 24 **commit_creation** | [**CommitCreation**](CommitCreation.md) | | [required] | 25 **source_metarange** | Option<**String**> | The source metarange to commit. Branch must not have uncommitted changes. | | 26 27 ### Return type 28 29 [**models::Commit**](Commit.md) 30 31 ### Authorization 32 33 [basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth), [jwt_token](../README.md#jwt_token) 34 35 ### HTTP request headers 36 37 - **Content-Type**: application/json 38 - **Accept**: application/json 39 40 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 41 42 43 ## get_commit 44 45 > models::Commit get_commit(repository, commit_id) 46 get commit 47 48 ### Parameters 49 50 51 Name | Type | Description | Required | Notes 52 ------------- | ------------- | ------------- | ------------- | ------------- 53 **repository** | **String** | | [required] | 54 **commit_id** | **String** | | [required] | 55 56 ### Return type 57 58 [**models::Commit**](Commit.md) 59 60 ### Authorization 61 62 [basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth), [jwt_token](../README.md#jwt_token) 63 64 ### HTTP request headers 65 66 - **Content-Type**: Not defined 67 - **Accept**: application/json 68 69 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) 70