Skip to content
forked from hex-g/mugshot

Profile picture management API (Germano's version), give a try ;)

Notifications You must be signed in to change notification settings

manoger/mugshot

 
 

Repository files navigation

mugshot


:suspect: The profile image API (Germano's version/see my branch)

First steps

(Configuring the environment):

  1. git clone https://github.com/hex-g/mugshot.git
    1. cd mugshot
  2. git checkout [branch]
  3. git submodule init
  4. git submodule update
  5. Run the project in your IDE
    1. required JDK 11+
    2. 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]
  • body
    • key: image
    • value: [file in form-data]

🟢 GET

  • header
    • key: authenticated-user-id
    • value: [identification for the folder where the image will be retrieved]

🔴 DELETE

  • header
    • key: authenticated-user-id
    • value: [identification for the folder where the image will be deleted]

🎲 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]

📄 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]

About

Profile picture management API (Germano's version), give a try ;)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%