This is a simple api developed with Symfony for a mobile application.
git clone https://github.com/mikayilsrt/api-shareapp.git
cd api-shareapp && composer install
...
[POST]
http://127.0.0.1:8000/api/register
- [Params]
- username: string | required | unique
- mail: string | required | unique
- password: string | required
[POST]
http://127.0.0.1:8000/api/login_check
- [Body]
- username: string | required
- password: string | required
[POST]
http://127.0.0.1:8000/api/reset/password
- [FORM_DATA]
- email: string | required
- new_password: string | required
[POST]
http://127.0.0.1:8000/api/auth_valid
[POST]
http://127.0.0.1:8000/api/user/update/{id}
- [Header]
- Authorization: Bearer Token
- [FORM_DATA]
- name: string | required
- username: string | required
- email: string | required
- password: string | required
- biographie: string
- portfolio_url: string
- latitude: double
- longitude: double
- profile_image: file
[GET]
http://127.0.0.1:8000/api/user/{id}
[GET]
http://127.0.0.1:8000/api/collection
[GET]
http://127.0.0.1:8000/api/collection/{id}
[POST]
http://127.0.0.1:8000/api/collection/create
- [Header]
- Authorization: Bearer Token
- [FORM_DATA]
- title: string | required
- description: string | required
- collection_cover: file
[POST]
http://127.0.0.1:8000/api/collection/update/{id}
- [Params]
- title: string | required
- description: string | required
- [Header]
- Authorization: Bearer Token
- [FORM_DATA]
- collection_cover: File
[DELETE]
http://127.0.0.1:8000/api/collection/delete/{id}
- [Header]
- Authorization: Bearer Token
[GET]
http://127.0.0.1:8000/api/photo/
[POST]
http://127.0.0.1:8000/api/photo/create
- [Header]
- Authorization: Bearer Token
- [FORM_DATA]
- title: string | required
- description: string | description
- image_file: File | required
- collection_id: int | required
- longitude: double
- latitude: double
[POST]
http://127.0.0.1:8000/api/photo/delete/{id}
- [Header]
- Authorization: Bearer Token
[POST]
http://127.0.0.1:8000/api/favorite/favorite
- [Params]
- photo_id: int | required
- [Header]
- Authorization: Bearer Token
[POST]
http://127.0.0.1:8000/api/search
- [Params]
- args: string | required