Skip to content

Folium1/testTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Start the application

git clone https://github.com/Folium1/testTask.git
1.Copy the key of your mysql db source to MYSQL_SOURCE local variable
2.Start mysql server.
3.Run go run main.go
Requests:

  • (POST) /login: A mock user is created with the following JSON payload: {"username": "test", "password": 123456}.
  • (GET) /logs: returns a list of all logs
  • (POST) /upload-picture: Upload a picture in the form with the key "image". Include the token received from the login request in the header.
  • (GET) /images: Include the token received from the login request in the header.

About

Realization of test task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages