Skip to content

Latest commit

 

History

History
250 lines (141 loc) · 7.16 KB

StyleGuidesApi.md

File metadata and controls

250 lines (141 loc) · 7.16 KB

\StyleGuidesApi

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

Method HTTP request Description
StyleguideCreate Post /projects/{project_id}/styleguides Create a style guide
StyleguideDelete Delete /projects/{project_id}/styleguides/{id} Delete a style guide
StyleguideShow Get /projects/{project_id}/styleguides/{id} Get a single style guide
StyleguideUpdate Patch /projects/{project_id}/styleguides/{id} Update a style guide
StyleguidesList Get /projects/{project_id}/styleguides List style guides

StyleguideCreate

StyleguideDetails StyleguideCreate(ctx, projectId, styleguideCreateParameters, optional)

Create a style guide

Create a new style guide.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a StyleguideCreateOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |

Return type

StyleguideDetails

Authorization

Basic, Token

HTTP request headers

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

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

StyleguideDelete

StyleguideDelete(ctx, projectId, id, optional)

Delete a style guide

Delete an existing style guide.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a StyleguideDeleteOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |

Return type

(empty response body)

Authorization

Basic, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

StyleguideShow

StyleguideDetails StyleguideShow(ctx, projectId, id, optional)

Get a single style guide

Get details on a single style guide.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a StyleguideShowOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |

Return type

StyleguideDetails

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]

StyleguideUpdate

StyleguideDetails StyleguideUpdate(ctx, projectId, id, styleguideUpdateParameters, optional)

Update a style guide

Update an existing style guide.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a StyleguideUpdateOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |

Return type

StyleguideDetails

Authorization

Basic, Token

HTTP request headers

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

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

StyleguidesList

[]Styleguide StyleguidesList(ctx, projectId, optional)

List style guides

List all styleguides for the given project.

Required Parameters

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

Optional Parameters

Optional parameters are passed through a pointer to a StyleguidesListOpts 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 |

Return type

[]Styleguide

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]