-
Notifications
You must be signed in to change notification settings - Fork 0
API Documentation
All API requests are made to:
/api/users
This endpoint is used to register a new user.
The request body must include a JSON object with the following properties:
-
userName
(string): The username of the user. -
email
(string): The email of the user. -
password
(string): The password of the user. -
name
(string): The name of the user. -
birthday
(date): The birthday of the user. -
bio
(string): The bio of the user. -
profilePicture
(byte array): The profile picture of the user.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the registration was successful. -
message
(string): A message describing the result of the operation.
This endpoint is used to login a user.
The request body must include a JSON object with the following properties:
-
userName
(string): The username of the user. -
password
(string): The password of the user.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the login was successful. -
message
(string): A message describing the result of the operation. -
token
(string): The JWT token for the authenticated session.
This endpoint is used to get the details of a user.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the operation was successful. -
message
(string): A message describing the result of the operation. -
user
(object): The user object with all the details of the user.
All API requests are made to:
/api/posts
This endpoint is used to create a new post.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user. -
media
(byte array): The media of the post. -
animalName
(string): The name of the animal in the post. -
caption
(string): The caption of the post. -
location
(string): The location of the post. -
photoDate
(date): The date of the photo.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the post creation was successful. -
message
(string): A message describing the result of the operation.
This endpoint is used to get the posts of a specific user.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the operation was successful. -
message
(string): A message describing the result of the operation. -
posts
(array): An array of post objects.
This endpoint is used to get the posts by animal name.
The request body must include a JSON object with the following properties:
-
animalName
(string): The name of the animal.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the operation was successful. -
message
(string): A message describing the result of the operation. -
posts
(array): An array of post objects.
This endpoint is used to get the posts by family.
The request body must include a JSON object with the following properties:
-
family
(string): The family of the animal.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the operation was successful. -
message
(string): A message describing the result of the operation. -
posts
(array): An array of post objects.
This endpoint is used to get the feed of posts.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the operation was successful. -
message
(string): A message describing the result of the operation. -
posts
(array): An array of post objects.
This endpoint is used to get the interactions of a user with a post.
The request body must include a JSON object with the following properties:
-
postID
(integer): The ID of the post. -
username
(string): The username of the user.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the operation was successful. -
message
(string): A message describing the result of the operation. -
isLiked
(boolean): Indicates if the user liked the post. -
isDisliked
(boolean): Indicates if the user disliked the post. -
isBookmarked
(boolean): Indicates if the user bookmarked the post.
All API requests are made to:
/api/users
This endpoint is used to like a post.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user. -
postID
(integer): The ID of the post.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the like operation was successful. -
message
(string): A message describing the result of the operation.
This endpoint is used to unlike a post.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user. -
postID
(integer): The ID of the post.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the unlike operation was successful. -
message
(string): A message describing the result of the operation.
This endpoint is used to get the like count of a post.
The request body must include a JSON object with the following properties:
-
postID
(integer): The ID of the post.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the operation was successful. -
message
(string): A message describing the result of the operation. -
likeCount
(integer): The like count of the post.
All API requests are made to:
/api/users
This endpoint is used to dislike a post.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user. -
postID
(integer): The ID of the post.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the dislike operation was successful. -
message
(string): A message describing the result of the operation.
This endpoint is used to undislike a post.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user. -
postID
(integer): The ID of the post.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the undislike operation was successful. -
message
(string): A message describing the result of the operation.
This endpoint is used to get the dislike count of a post.
The request body must include a JSON object with the following properties:
-
postID
(integer): The ID of the post.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the operation was successful. -
message
(string): A message describing the result of the operation. -
likeCount
(integer): The dislike count of the post.
All API requests are made to:
/api/comment
This endpoint is used to post a comment.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user. -
postID
(integer): The ID of the post. -
description
(string): The content of the comment.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the comment posting was successful. -
message
(string): A message describing the result of the operation.
This endpoint is used to delete a comment.
The request body must include a JSON object with the following properties:
-
commentID
(integer): The ID of the comment.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the comment deletion was successful. -
message
(string): A message describing the result of the operation.
This endpoint is used to get the comments of a specific post.
The request body must include a JSON object with the following properties:
-
postID
(integer): The ID of the post.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the operation was successful. -
message
(string): A message describing the result of the operation. -
comments
(array): An array of comment objects.
This endpoint is used to get the comments of a specific user.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the operation was successful. -
message
(string): A message describing the result of the operation. -
comments
(array): An array of comment objects.
All API requests are made to:
/api/users
This endpoint is used to bookmark a post.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user. -
postID
(integer): The ID of the post.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the bookmark operation was successful. -
message
(string): A message describing the result of the operation.
This endpoint is used to unbookmark a post.
The request body must include a JSON object with the following properties:
-
username
(string): The username of the user. -
postID
(integer): The ID of the post.
The response body returns a JSON object with the following properties:
-
success
(boolean): Indicates if the unbookmark operation was successful. -
message
(string): A message describing the result of the operation.
All API requests are made to:
/api
This endpoint is used to search for a term in the application.
The request body must include a JSON object with the following properties:
-
searchTerm
(string): The term to be searched.
The response body returns a JSON object with the following properties:
-
animalInfoSearch
(array): An array ofAnimalInfoSearch
objects that match the search term. -
users
(array): An array ofRegisteredUser
objects that match the search term. -
posts
(array): An array ofPost
objects that match the search term. -
userShouldClarify
(boolean): Indicates if the user should clarify the search term.
- 08.12.2024 -- Seventh Meeting
- 13.10.2024 -- Sixth Meeting
- 08.10.2024 -- Fifth Meeting
- 06.10.2024 -- Fourth Meeting
- 04.10.2024 -- Third Meeting
- 01.10.2024 -- Second Meeting
- 24.09.2024 -- First Meeting
- 08.12.2024 -- Fourth Meeting
- 19.10.2024 -- Third Meeting
- 13.10.2024 -- Second Meeting
- 10.10.2024 -- First Meeting
💻 Lab Reports
📝 Milestone Reports
👨🏽🤝👨🏾 User Group Scenarios
👨🏻💼👩🏻💼 User Scenarios
👤 Personal Pages
📝 Templates
Animal Trove Project
### 💻 Project- 1st Milestone Report
- 2nd Milestone Report
- 3rd Milestone Report
- Organization
- Requirements
- Elicitation Questions
- Scenerios
- Mockups
- Use Case Diagram
- Class Diagram
- Sequence Diagram
- RAM
- Project Plan
- User Tests
- Integration Tests
- Git Research
- Wikidata, Linked Data, SPARQL
- Web & Mobile Application Development
- API Development & Wikidata API
- Semantic Search
- Our Favorite Repositories