antwebes/photo-rest-bundle

Photo Rest Bundle for symfony2

Installs: 4 446

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.2.0 2018-01-07 14:59 UTC

This package is auto-updated.

Last update: 2024-11-29 04:08:53 UTC


README

Documentation:

Doc about bundle: https://github.com/antwebes/PhotoRestBundle/blob/master/Doc/index.md

bundle to manage photo with rest

Codes:

'Unable to find Photo entity', '42', '404'

'Access denied', '44', '403'

'You have already voted this photo ', '46', '409'

Upload image by curl

curl -v -H "Accept: application/json" -H "Content-Type: multipart/form-data" -X POST -F "title=holaaa" -F "image=@/home/pc/Escritorio/torrente222.jpg" http://url/api/ant/photo?access_token={token}

update photo path url if use_full_path in server_base_url parameter