Tag API documentation fix: create endpoint has tag passed as argument, not in URL
This commit is contained in:
parent
bceee0ea74
commit
2add12d1dd
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
Creae Tag
|
Create Tag
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,13 +46,13 @@ _Authentication: required_
|
||||||
<a name="example-cli"></a>
|
<a name="example-cli"></a>
|
||||||
#### Command Line (using [openphoto-php][openphoto-php])
|
#### Command Line (using [openphoto-php][openphoto-php])
|
||||||
|
|
||||||
./openphoto -p -X POST -h current.openphoto.me -e /tag/sunnyvale/create.json -F 'count=10'
|
./openphoto -p -X POST -h current.openphoto.me -e /tag/create.json -F 'tag=sunnyvale' -F 'count=10'
|
||||||
|
|
||||||
<a name="example-php"></a>
|
<a name="example-php"></a>
|
||||||
#### PHP (using [openphoto-php][openphoto-php])
|
#### PHP (using [openphoto-php][openphoto-php])
|
||||||
|
|
||||||
$client = new OpenPhotoOAuth($host, $consumerKey, $consumerSecret, $oauthToken, $oauthTokenSecret);
|
$client = new OpenPhotoOAuth($host, $consumerKey, $consumerSecret, $oauthToken, $oauthTokenSecret);
|
||||||
$response = $client->post("/tag/sunnyvale/create.json", array('count' => 10));
|
$response = $client->post("/tag/create.json", array('tag' => 'sunnyvale', 'count' => 10));
|
||||||
|
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ Every API endpoint returns a JSON response in a [standard envelope](http://theop
|
||||||
#### Tag endpoints
|
#### Tag endpoints
|
||||||
1. [GET /tags/list.json](http://theopenphotoproject.org/documentation/api/GetTags)
|
1. [GET /tags/list.json](http://theopenphotoproject.org/documentation/api/GetTags)
|
||||||
Get a user's tags.
|
Get a user's tags.
|
||||||
1. [POST /tag/:id/create.json](http://theopenphotoproject.org/documentation/api/PostTagCreate)
|
1. [POST /tag/create.json](http://theopenphotoproject.org/documentation/api/PostTagCreate)
|
||||||
Create a tag for the user.
|
Create a tag for the user.
|
||||||
1. [POST /tag/:id/update.json](http://theopenphotoproject.org/documentation/api/PostTagUpdate)
|
1. [POST /tag/:id/update.json](http://theopenphotoproject.org/documentation/api/PostTagUpdate)
|
||||||
Modify meta data for a user's tag.
|
Modify meta data for a user's tag.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue