An API for devlaza.
First, You need to execute the command shown below to boot the API server.
docker-compose up -d
Then, set mail auth info.
export MAILADDRESS=${Your mail account address.}
export PASSWORD=${Your mail account password.}
Finally, execute this command on the project root directory.
./gradlew bootRun
POST http://localhost:8080/users/new
- name: String
- password: String
- showId: String
- mailAddress: String
You will receive mail from ${MAILADDRESS}
to check if the email is valid or not.
POST http://localhost:8080/users/login
- address: String
- password: String
If you succeed in authentication, you will get a login token.
GET http://localhost:8080/users/<id>
<id> is user id.
POST http://localhost:8080/projects/
<= Don't forget last /
!!!
- name: String
- token: String
- introduction: String
- sites: String
- tags: String
If you want to specify multiple sites and tags, they need to be separated by +
.
Format of sites is title,url
GET http://localhost:8080/projects/
GET http://localhost:8080/projects/<id>
<id> is project id.
GET http://localhost:8080/projects/contidion
query
- keyword: String
- user: String
- tags: String
- sort: String(asc|desc|popular)
- recruiting: Int(1: open 0: close 2: both)
- searchStartDate: String(LocalDate)
- searchEndDate: String(LocalDate)
PATCH http://localhost:8080/projects/join/<id>
<id> is project id.
query
- token: String
DELETE http://localhost:8080/projects/leave/<id>
<id> is project id.
query
- token:String
DELETE http://localhost:8080/projects/<id>
<id> is project id.
query
- token:String
POST http://localhost:8080/auth/
query
- token:String