All URIs are relative to https://api.phrase.com/v2
| Method | HTTP request | Description |
|---|---|---|
| BranchCompare | Get /projects/{project_id}/branches/{name}/compare | Compare branches |
| BranchComparisonCreate | Post /projects/{project_id}/branches/{name}/compare | Create comparison (async.) |
| BranchCreate | Post /projects/{project_id}/branches | Create a branch |
| BranchDelete | Delete /projects/{project_id}/branches/{name} | Delete a branch |
| BranchMerge | Patch /projects/{project_id}/branches/{name}/merge | Merge a branch |
| BranchShow | Get /projects/{project_id}/branches/{name} | Get a single branch |
| BranchSync | Patch /projects/{project_id}/branches/{name}/sync | Sync a branch |
| BranchUpdate | Patch /projects/{project_id}/branches/{name} | Update a branch |
| BranchesList | Get /projects/{project_id}/branches | List branches |
BranchCompare(ctx, projectId, name, optional)
Compare branches
Compare branch with main branch. Note: Comparing a branch may take several minutes depending on the project size. Consider using the POST /compare endpoint for creating comparison asynchronously.
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project ID | |
| name | string | name | |
| optional | *BranchCompareOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BranchCompareOpts struct
| Name | Type | Description | Notes |
|---|---|---|---|
| xPhraseAppOTP | optional.String | Two-Factor-Authentication token (optional) |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BranchComparisonCreate(ctx, projectId, name, branchCreateComparisonParameters, optional)
Create comparison (async.)
Create a branch comparison asynchronously.
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project ID | |
| name | string | name | |
| branchCreateComparisonParameters | BranchCreateComparisonParameters | ||
| optional | *BranchComparisonCreateOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BranchComparisonCreateOpts struct
| Name | Type | Description | Notes |
|---|---|---|---|
| xPhraseAppOTP | optional.String | Two-Factor-Authentication token (optional) |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Branch BranchCreate(ctx, projectId, branchCreateParameters, optional)
Create a branch
Create a new branch. Note: Creating a new branch may take several minutes depending on the project size.
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project ID | |
| branchCreateParameters | BranchCreateParameters | ||
| optional | *BranchCreateOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BranchCreateOpts struct
| Name | Type | Description | Notes |
|---|---|---|---|
| xPhraseAppOTP | optional.String | Two-Factor-Authentication token (optional) |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BranchDelete(ctx, projectId, name, optional)
Delete a branch
Delete an existing branch.
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project ID | |
| name | string | name | |
| optional | *BranchDeleteOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BranchDeleteOpts struct
| Name | Type | Description | Notes |
|---|---|---|---|
| xPhraseAppOTP | optional.String | Two-Factor-Authentication token (optional) |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BranchMerge(ctx, projectId, name, branchMergeParameters, optional)
Merge a branch
Merge an existing branch. Note: Merging a branch may take several minutes depending on diff size.
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project ID | |
| name | string | name | |
| branchMergeParameters | BranchMergeParameters | ||
| optional | *BranchMergeOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BranchMergeOpts struct
| Name | Type | Description | Notes |
|---|---|---|---|
| xPhraseAppOTP | optional.String | Two-Factor-Authentication token (optional) |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Branch BranchShow(ctx, projectId, name, optional)
Get a single branch
Get details on a single branch for a given project.
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project ID | |
| name | string | name | |
| optional | *BranchShowOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BranchShowOpts struct
| Name | Type | Description | Notes |
|---|---|---|---|
| xPhraseAppOTP | optional.String | Two-Factor-Authentication token (optional) |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BranchSync(ctx, projectId, name, branchSyncParameters, optional)
Sync a branch
Sync an existing branch. Note: Only available for branches created with new branching.
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project ID | |
| name | string | name | |
| branchSyncParameters | BranchSyncParameters | ||
| optional | *BranchSyncOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BranchSyncOpts struct
| Name | Type | Description | Notes |
|---|---|---|---|
| xPhraseAppOTP | optional.String | Two-Factor-Authentication token (optional) |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Branch BranchUpdate(ctx, projectId, name, branchUpdateParameters, optional)
Update a branch
Update an existing branch.
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project ID | |
| name | string | name | |
| branchUpdateParameters | BranchUpdateParameters | ||
| optional | *BranchUpdateOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BranchUpdateOpts struct
| Name | Type | Description | Notes |
|---|---|---|---|
| xPhraseAppOTP | optional.String | Two-Factor-Authentication token (optional) |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Branch BranchesList(ctx, projectId, optional)
List branches
List all branches the of the current project.
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| projectId | string | Project ID | |
| optional | *BranchesListOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a BranchesListOpts struct
| Name | Type | Description | Notes |
|---|---|---|---|
| xPhraseAppOTP | optional.String | Two-Factor-Authentication token (optional) | |
| page | optional.Int32 | Page number | |
| perPage | optional.Int32 | Limit on the number of objects to be returned, between 1 and 100. 25 by default |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]