Skip to content

Latest commit

 

History

History
110 lines (63 loc) · 3.27 KB

VersionsHistoryApi.md

File metadata and controls

110 lines (63 loc) · 3.27 KB

\VersionsHistoryApi

All URIs are relative to https://api.phrase.com/v2

Method HTTP request Description
VersionShow Get /projects/{project_id}/translations/{translation_id}/versions/{id} Get a single version
VersionsList Get /projects/{project_id}/translations/{translation_id}/versions List all versions

VersionShow

TranslationVersionWithUser VersionShow(ctx, projectId, translationId, id, optional)

Get a single version

Get details on a single version.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project ID
translationId string Translation ID
id string ID
optional *VersionShowOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a VersionShowOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) | branch | optional.String| specify the branch to use |

Return type

TranslationVersionWithUser

Authorization

Basic, Token

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

VersionsList

[]TranslationVersion VersionsList(ctx, projectId, translationId, optional)

List all versions

List all changes done to a given translation.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project ID
translationId string Translation ID
optional *VersionsListOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a VersionsListOpts 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 | branch | optional.String| specify the branch to use |

Return type

[]TranslationVersion

Authorization

Basic, Token

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]