Skip to content

Django REST API application to store images and generate thumbnails for them.

Notifications You must be signed in to change notification settings

adrian13508/PhotoApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please note that for proper work You need to create .env ans settings.py files.
Those files are not included in repository due to security reasons.

All information about API can be found under http://localhost:8000/rest-api/
APISwagger is available under http://localhost:8000/swagger

HOW TO USE APP:

1. Photo List 
	1. Go to http://localhost:8000/photos/
	- enter credentials
	- expected to see list of uploaded photos
2. Photo Upload 
	1. Go to http://localhost:8000/photos/add
	2. enter required data (name, image) 
	3. Send POST request
	- expected status 200
	- expected response with photo details and thumbnail links generated
	
3. Generate thumbnail links 
	1. Go to http://localhost:8000/photos/generate
	- expected to GET list of already uploaded photos with all thumbnail links according to Access Tier
	
4. Generate thumbnail links with expiration time
	1. Go to http://localhost:8000/photos/generateExpired
	- expected to GET list of already uploaded photos with all thumbnail links according to Access Tier
	- if Access Tier does not allow to generate expiring links user gets "You don't have access to generate expiring links, contact Admin to upgrade access tier"
	
5. Delete photo
	1. Go to localhost:8000/photos/delete/{id} where id is id of photo User wants to remove
	- if photo exists, user gets status 200 and can remove photo by pressing DELETE button and confirming it
	- if photo does not exists user gets status 404
	



About

Django REST API application to store images and generate thumbnails for them.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages