-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the innovate.it-server wiki!
Check connection:
GET /api/hello
-> returns "Hello world"
Registration:
POST /auth/registration
with body:
{String username,
String password,
String authority}
Add investition; POST /api/investition
with request body:
{
`"title": "title",`
`"description": "desc",`
`"shortDescription": "short-desc",`
`"category": "SHOPPING",`
`"images": [{ "name": "name",`
`"data": "data"}],`
`"creator": "creator"`
`"place":
{ "name": "name",`
`"longitude": "longitude",
"latitude": "latitude"
}`
}
Get investitions with city OR creator username:
POST /api/investitions
with body:
{
"city": "city"
/OR/
"creator": "creator"
}
Get investitions graded by user:
GET /api/investitions/{username}
Get investitions not graded by user: `GET /api/investitions/notliked/{username}
Get investitions liked by user:
GET /investitions/liked/{username}
Get all investition categories
GET /api/investitions/allCategories
Get all investitions with grades of specified user
GET /api/investitions/{username}
Get image ids list for investition:
GET /urls/images/{investition_id}
results in JSON property imageIds
Get image data and name:
GET /urls/image/{image_id}
reutrns json with string name and string data
results in JSON property imageDto
LIKE:
GET api/investition/like/{investitionId}/{username}
DISLIKE:
GET api/investition/dislike/{investitionId}/{username}