-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update README, update update endpoint
- Loading branch information
Showing
3 changed files
with
104 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,31 @@ https://github.com/phrase/phrase-cli | |
|
||
[https://swagger.io/docs/specification/about/](https://swagger.io/docs/specification/about/) | ||
|
||
### Defining parameters | ||
|
||
`POST`/`PUT` requests should define parameters within `requestBody` section, like the following: | ||
|
||
```yaml | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
title: key/create/parameters | ||
properties: | ||
branch: | ||
description: specify the branch to use | ||
type: string | ||
example: my-feature-branch | ||
name: | ||
description: Key name | ||
type: string | ||
example: home.index.headline | ||
``` | ||
`parameters` section should contain only those parameters which are part of the URL (typically `project_id` and/or `account_id`) | ||
|
||
## Get help / support | ||
|
||
Please contact [[email protected]](mailto:[email protected]?subject=[GitHub]%20openapi) and we can take more direct action toward finding a solution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters