mugshot
The profile image API (Germano's version/see my branch)
First steps
(Configuring the environment):
- git clone https://github.com/hex-g/mugshot.git
- cd mugshot
- git checkout [branch]
- git submodule init
- git submodule update
- Run the project in your IDE
- required JDK 11+
- required Gradle compatible
Usage
😃 URL:
http://localhost:9500/
- Profile image
🌉 URL:
http://localhost:9500/banner
- Banner image
POST
🔵 header
- key:
authenticated-user-id
- value: [identification for the folder where the image will be stored]
- key:
body
- key:
image
- value: [file in form-data]
- key:
GET
🟢 header
- key:
authenticated-user-id
- value: [identification for the folder where the image will be retrieved]
- key:
DELETE
🔴 header
- key:
authenticated-user-id
- value: [identification for the folder where the image will be deleted]
- key:
🎲 Random
URL:
http://localhost:9500/generateImage/random
- Profile image
POST
🔵 header
- key:
authenticated-user-id
- value: [identification for the folder where the generated image will be stored]
- key:
📄 Base64
URL:
http://localhost:9500/base64
- Profile image
URL:
http://localhost:9500/base64/banner
- Banner image
alternative form for getting image
GET
🟢 header
- key:
authenticated-user-id
- value: [identification for the folder where the image will be retrieved encoded in base64]
- key: