-
-
Notifications
You must be signed in to change notification settings - Fork 18
#119 Native Sublinks API #359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Pdzly
wants to merge
132
commits into
main
Choose a base branch
from
issue/119-native-api
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
132 commits
Select commit
Hold shift + click to select a range
139ae2a
#119 Created base controllers for native API
jgrim 8115338
Merge branch 'main' into issue/119-native-api
jgrim 9388d2a
Minor fix addition
Pdzly d340421
Added Personmapper
Pdzly c29a96b
Remove unnecessary blank line in PersonMapper
Pdzly e922f0e
Merge branch 'refs/heads/feature/353-swap-to-postgres' into issue/119…
Pdzly 523d863
Refactor PersonService, implement JWT auth and person registration
Pdzly adab151
Refactor codebase to switch primitive boolean to Boolean and expand A…
Pdzly 6384aba
Fixed a bug
Pdzly 93f62f0
Fixed a bug
Pdzly 6034093
Add find methods in repositories and enhance community service
Pdzly 364454a
Implement comment service logic and enhance authorization
Pdzly 7945a0a
Refactor to use Optional in CommunityRepository methods
Pdzly 842ce8d
Refactor authentication and add language support to comments
Pdzly a21b35b
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly ce6b513
Refactor code for readability and consistency
Pdzly 123a928
.
Pdzly 0b8f6e2
Refactor authentication and update APIs
Pdzly e2523b1
Refactor controller classes and improve security
Pdzly ac83973
Renamed Enum 'ListingType' to 'SublinksListingType' and updated refer…
Pdzly 505d895
Made the community controller work
Pdzly 9b91168
Merge branch 'main' into issue/119-native-api
Pdzly 2566d31
Fixed some more
Pdzly 0d47e47
Add CommunityView and CommunityAggregates models
Pdzly 05a030b
Fixed a hickup
Pdzly a76268e
Renamed some attributes
Pdzly 171f0b7
Renamed some attributes
Pdzly 95a7861
Revert "Renamed some attributes"
Pdzly 94d7372
Revert "Fixed a hickup"
Pdzly a15c903
Revert "Add CommunityView and CommunityAggregates models"
Pdzly fb87d98
Merge remote-tracking branch 'origin/issue/119-native-api' into issue…
Pdzly 9a5e686
Revert "Renamed some attributes"
Pdzly bddbff7
Revert "Renamed some attributes"
Pdzly 904475b
Revert "Fixed a hickup"
Pdzly ae145c4
Revert "Add CommunityView and CommunityAggregates models"
Pdzly 19a10ec
Renamed some attributes
Pdzly 92b6f1c
Add community moderation features
Pdzly 9288a10
Merge branch 'main' into issue/119-native-api
jgrim bc0c69f
Implement user ban and unban functionality
Pdzly 99d0a69
Add CRUD features for communities and initial post functionality
Pdzly 4b873d1
Refactor UserController to improve person update logic
Pdzly 800de62
Update comment controller to return a list of responses
Pdzly f467971
Enhance comment and community features
Pdzly 24b5209
Enhance ban logic and add community remove feature
Pdzly 9e01c0b
Enhance ban logic and add community remove feature
Pdzly e3d7037
Merge remote-tracking branch 'origin/issue/119-native-api' into issue…
Pdzly f894d1f
Merge branch 'main' into issue/119-native-api
Pdzly 5bbf85a
Add community and comment moderation features
Pdzly dd612d5
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly 430baa2
Add comment pinning feature and refactor HTTP methods
Pdzly 815c3f0
Add comment pinning functionality and refactor HTTP methods
Pdzly 290cb35
Refactor application and extend functionality
Pdzly 4a5a936
Merge branch 'main' into issue/119-native-api
Pdzly 529971e
Refactor PersonAggregationController and add Auth checks
Pdzly c6f3615
Enhanced authorization checks and response models
Pdzly b4fe7c4
Add search functionality for instances and enhance APIs
Pdzly 6fdc7b3
LINT
Pdzly 1885ed3
Extend Search API to support communities, posts, and comments
Pdzly b67c2d8
Refactor code structure and add search functionality
Pdzly cf8726a
Optimize search functionality and improve code structure
Pdzly ac6a1dd
Refactor PostReport and PostLike repositories
Pdzly 1ee4353
Add show and create methods to SublinksPostService
Pdzly 74f00e8
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly 3ddde7b
Enhance Post functionalities with language support and slur filter
Pdzly 58b825a
Implement comment aggregate API and extend post functionalities
Pdzly f37650b
Implement comment aggregate API and extend post functionalities
Pdzly c450e00
Merge branch 'main' into issue/119-native-api
Pdzly dbf7b5d
Remove unnecessary comment from SQL migration script
Pdzly 5a5ec06
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly dec9b68
Add announcement functionality to Sublinks API
Pdzly 6977dff
Add CRUD operations and models for announcements
Pdzly 9f157db
Add 'active' status and 'creator' field to announcements
Pdzly 626ca5d
Refactor permissions checks in various services
Pdzly 46def33
Add functionality for handling user metadata
Pdzly 47c53fa
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly 9a0a7eb
Refactor security configuration in SecurityConfig.java
Pdzly bd0ebc1
Rearrange JWT filter addition in SecurityConfig
Pdzly e99b145
Refactor SublinksPersonMetaDataMapper class
Pdzly d550b84
Refactor code and enhance User Data Management capabilities
Pdzly 2ae010c
Refactor UserDataService to simplify metadata updates
Pdzly 67b75a7
Reorder import statements in UserDataService
Pdzly abd18c6
Add authorization to instance config actions
Pdzly 3769ed4
Refactor moderation models and update relevant methods
Pdzly b3be4a2
Add post aggregate functionality
Pdzly 68da5cb
Update moderation actions from "remove" to "pin"
Pdzly 4cf90cb
Add purge community operation and update delete action summary
Pdzly 9afff74
Add post pinning, community pinning, and post purging methods
Pdzly 015d23e
Update permissions and search functionalities in API
Pdzly 230837a
Remove "purge" functionality and cleanup controllers
Pdzly 0559f32
Change request mapping in SublinksPostAggregateController
Pdzly 7c55988
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly c4e12ed
Enhance role management and authorization handling.
Pdzly 3a74604
Update role management and ACL services for role expiration
Pdzly 07c22d8
Refactor RequestResponse imports and enhance RolesController
Pdzly b1fe484
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly 341daf8
Add inheritance support to roles and enhance role mapping.
Pdzly efb22c1
Enable Hikari pool suspension and update transactional annotations
Pdzly ba4f7d0
Refactor role saving to use saveAndFlush
Pdzly 89e2b8d
Refactor role and permissions mapping for improved handling
Pdzly c058838
Enhance mapper configurations and simplify role permission logic
Pdzly d3be423
Refactor role service pagination and formatting of controller methods
Pdzly f364f08
Add missing newline for better readability
Pdzly 9510654
Add purge post functionality to moderation
Pdzly eecb193
Implement purge post placeholder in SublinksPostService
Pdzly 2625aae
Refactor method parameter name in purge method
Pdzly 4172499
Add @NonNull annotations and comprehensive JavaDocs
Pdzly 528cc2f
Adjust pagination to start from the first page.
Pdzly 42662ce
Add SublinksCommentSortTypeMapper and refactor sort type logic
Pdzly a0c129d
Refactor comment entities and service methods
Pdzly 700476e
Remove replies field from CommentResponse model
Pdzly 15a53ea
Remove @Builder annotation from CommentResponse
Pdzly ebb7e41
Add instance data to PersonResponse and improve search handling
Pdzly eaad440
Refactor comment handling and clean up unused dependencies
Pdzly b79b558
Clarify comment handling in buildHierarchy method
Pdzly c4007d1
Fix incomplete comment in SublinksCommentService.java
Pdzly 96cff2e
Fix typos in comment structuring logic documentation.
Pdzly fa2fed4
Refactor pagination logic and improve SQL query
Pdzly 81bc5d8
Standardize API tags and refactor unauthorized exception
Pdzly 53dd65a
Add Swagger annotations to community models
Pdzly 66d4ee9
Add Swagger annotations to CommentResponse and UpdateComment
Pdzly cfa198a
Add Swagger annotations and rename model class
Pdzly 04a03be
Fix indentation in SublinksCommentAggregateController
Pdzly 6e4f6ef
Merge branch 'main' into issue/119-native-api
Pdzly 9e0f129
Remove RolePermissionService from SublinksCommentModerationController
Pdzly 2dbeae8
Add token handling to session management
Pdzly f0d250f
Format code for consistency in SublinksAnnouncementService
Pdzly 1c0587a
Add JWT token to SublinksJwtPerson object
Pdzly caba87b
LINT
Pdzly b855280
Change submodule URL for 'docker' repository
Pdzly 8de8fcd
Change submodule URL for 'docker' repository
Pdzly 1da86ae
Add password encryption in SublinksPersonService
Pdzly 23f0e92
Handle missing tokens in JwtFilters
Pdzly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
.../sublinks/sublinksapi/api/sublinks/v1/annoucement/controllers/AnnouncementController.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package com.sublinks.sublinksapi.api.sublinks.v1.annoucement.controllers; | ||
|
||
import com.sublinks.sublinksapi.api.sublinks.v1.common.controllers.AbstractSublinksApiController; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.web.bind.annotation.DeleteMapping; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
@RequestMapping("api/v1/announcement") | ||
@Tag(name = "Announcement", description = "Announcement API") | ||
public class AnnouncementController extends AbstractSublinksApiController { | ||
|
||
@Operation(summary = "Get a list of announcements") | ||
@GetMapping | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void index() { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Get a specific announcement") | ||
@GetMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void show(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Create a new announcement") | ||
@PostMapping | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void create() { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Update an announcement") | ||
@PostMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void update(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Delete an announcement") | ||
@DeleteMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void delete(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../java/com/sublinks/sublinksapi/api/sublinks/v1/annoucement/models/CommentResponseDto.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.sublinks.sublinksapi.api.sublinks.v1.annoucement.models; | ||
|
||
public record CommentResponseDto( | ||
String id, | ||
String postId, | ||
String personId, | ||
String communityId, | ||
String content, | ||
String createdAt, | ||
String updatedAt | ||
) { | ||
|
||
} |
60 changes: 60 additions & 0 deletions
60
.../java/com/sublinks/sublinksapi/api/sublinks/v1/comment/controllers/CommentController.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package com.sublinks.sublinksapi.api.sublinks.v1.comment.controllers; | ||
|
||
import com.sublinks.sublinksapi.api.sublinks.v1.common.controllers.AbstractSublinksApiController; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.web.bind.annotation.DeleteMapping; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
@RequestMapping("api/v1/comment") | ||
@Tag(name = "Comment", description = "Comment API") | ||
public class CommentController extends AbstractSublinksApiController { | ||
@Operation(summary = "Get a list of comments") | ||
@GetMapping | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void index() { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Get a specific comment") | ||
@GetMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void show(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Create a new comment") | ||
@PostMapping | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void create() { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Update an comment") | ||
@PostMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void update(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Delete an comment") | ||
@DeleteMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void delete(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...ublinks/sublinksapi/api/sublinks/v1/common/controllers/AbstractSublinksApiController.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.sublinks.sublinksapi.api.sublinks.v1.common.controllers; | ||
|
||
public abstract class AbstractSublinksApiController { | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/sublinks/sublinksapi/api/sublinks/v1/common/enums/DateSort.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.sublinks.sublinksapi.api.sublinks.v1.common.enums; | ||
|
||
public enum DateSort { | ||
ASC, | ||
DESC | ||
} |
60 changes: 60 additions & 0 deletions
60
...a/com/sublinks/sublinksapi/api/sublinks/v1/community/controllers/CommunityController.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package com.sublinks.sublinksapi.api.sublinks.v1.community.controllers; | ||
|
||
import com.sublinks.sublinksapi.api.sublinks.v1.common.controllers.AbstractSublinksApiController; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.web.bind.annotation.DeleteMapping; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
@RequestMapping("api/v1/community") | ||
@Tag(name = "Community", description = "Community API") | ||
public class CommunityController extends AbstractSublinksApiController { | ||
@Operation(summary = "Get a list of communities") | ||
@GetMapping | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void index() { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Get a specific community") | ||
@GetMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void show(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Create a new community") | ||
@PostMapping | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void create() { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Update an community") | ||
@PostMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void update(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Delete an community") | ||
@DeleteMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void delete(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
...ava/com/sublinks/sublinksapi/api/sublinks/v1/instance/controllers/InstanceController.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package com.sublinks.sublinksapi.api.sublinks.v1.instance.controllers; | ||
|
||
import com.sublinks.sublinksapi.api.sublinks.v1.common.controllers.AbstractSublinksApiController; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.web.bind.annotation.DeleteMapping; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
@RequestMapping("api/v1/instance") | ||
@Tag(name = "Instance", description = "Instance API") | ||
public class InstanceController extends AbstractSublinksApiController { | ||
@Operation(summary = "Get a list of instances") | ||
@GetMapping | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void index() { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Get a specific instance") | ||
@GetMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void show(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Create a new instance") | ||
@PostMapping | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void create() { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Update an instance") | ||
@PostMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void update(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Delete an instance") | ||
@DeleteMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void delete(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...in/java/com/sublinks/sublinksapi/api/sublinks/v1/person/controllers/PersonController.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package com.sublinks.sublinksapi.api.sublinks.v1.person.controllers; | ||
|
||
import com.sublinks.sublinksapi.api.sublinks.v1.common.controllers.AbstractSublinksApiController; | ||
import com.sublinks.sublinksapi.api.sublinks.v1.person.models.IndexPerson; | ||
import com.sublinks.sublinksapi.api.sublinks.v1.person.models.PersonResponse; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.media.Content; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponses; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import jakarta.validation.Valid; | ||
import org.springframework.http.MediaType; | ||
import org.springframework.web.bind.annotation.DeleteMapping; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
@RequestMapping("api/v1/person") | ||
@Tag(name = "Person", description = "Person API") | ||
public class PersonController extends AbstractSublinksApiController { | ||
|
||
@Operation(summary = "Get a list of persons") | ||
@GetMapping | ||
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK", content = { | ||
@Content(mediaType = MediaType.APPLICATION_JSON_VALUE, schema = @Schema(implementation = PersonResponse.class))})}) | ||
public void index(@RequestBody @Valid IndexPerson indexPerson) { | ||
} | ||
|
||
@Operation(summary = "Get a specific person") | ||
@GetMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void show(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Create a new person") | ||
@PostMapping | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void create() { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Update an person") | ||
@PostMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void update(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
|
||
@Operation(summary = "Delete an person") | ||
@DeleteMapping("/{id}") | ||
@ApiResponses(value = { | ||
// TODO: add responses | ||
}) | ||
public void delete(@PathVariable String id) { | ||
// TODO: implement | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.