Skip to content
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

#119 Native Sublinks API #359

Open
wants to merge 132 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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 Dec 22, 2023
8115338
Merge branch 'main' into issue/119-native-api
jgrim Apr 23, 2024
9388d2a
Minor fix addition
Pdzly Apr 24, 2024
d340421
Added Personmapper
Pdzly Apr 24, 2024
c29a96b
Remove unnecessary blank line in PersonMapper
Pdzly Apr 25, 2024
e922f0e
Merge branch 'refs/heads/feature/353-swap-to-postgres' into issue/119…
Pdzly Apr 26, 2024
523d863
Refactor PersonService, implement JWT auth and person registration
Pdzly Apr 29, 2024
adab151
Refactor codebase to switch primitive boolean to Boolean and expand A…
Pdzly May 2, 2024
6384aba
Fixed a bug
Pdzly May 2, 2024
93f62f0
Fixed a bug
Pdzly May 2, 2024
6034093
Add find methods in repositories and enhance community service
Pdzly May 2, 2024
364454a
Implement comment service logic and enhance authorization
Pdzly May 4, 2024
7945a0a
Refactor to use Optional in CommunityRepository methods
Pdzly May 4, 2024
842ce8d
Refactor authentication and add language support to comments
Pdzly May 5, 2024
a21b35b
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly May 5, 2024
ce6b513
Refactor code for readability and consistency
Pdzly May 5, 2024
123a928
.
Pdzly May 6, 2024
0b8f6e2
Refactor authentication and update APIs
Pdzly May 6, 2024
e2523b1
Refactor controller classes and improve security
Pdzly May 7, 2024
ac83973
Renamed Enum 'ListingType' to 'SublinksListingType' and updated refer…
Pdzly May 7, 2024
505d895
Made the community controller work
Pdzly May 7, 2024
9b91168
Merge branch 'main' into issue/119-native-api
Pdzly May 8, 2024
2566d31
Fixed some more
Pdzly May 8, 2024
0d47e47
Add CommunityView and CommunityAggregates models
Pdzly May 8, 2024
05a030b
Fixed a hickup
Pdzly May 8, 2024
a76268e
Renamed some attributes
Pdzly May 8, 2024
171f0b7
Renamed some attributes
Pdzly May 8, 2024
95a7861
Revert "Renamed some attributes"
Pdzly May 10, 2024
94d7372
Revert "Fixed a hickup"
Pdzly May 10, 2024
a15c903
Revert "Add CommunityView and CommunityAggregates models"
Pdzly May 10, 2024
fb87d98
Merge remote-tracking branch 'origin/issue/119-native-api' into issue…
Pdzly May 10, 2024
9a5e686
Revert "Renamed some attributes"
Pdzly May 11, 2024
bddbff7
Revert "Renamed some attributes"
Pdzly May 11, 2024
904475b
Revert "Fixed a hickup"
Pdzly May 11, 2024
ae145c4
Revert "Add CommunityView and CommunityAggregates models"
Pdzly May 11, 2024
19a10ec
Renamed some attributes
Pdzly May 11, 2024
92b6f1c
Add community moderation features
Pdzly May 11, 2024
9288a10
Merge branch 'main' into issue/119-native-api
jgrim May 12, 2024
bc0c69f
Implement user ban and unban functionality
Pdzly May 13, 2024
99d0a69
Add CRUD features for communities and initial post functionality
Pdzly May 17, 2024
4b873d1
Refactor UserController to improve person update logic
Pdzly May 19, 2024
800de62
Update comment controller to return a list of responses
Pdzly May 19, 2024
f467971
Enhance comment and community features
Pdzly May 19, 2024
24b5209
Enhance ban logic and add community remove feature
Pdzly May 21, 2024
9e01c0b
Enhance ban logic and add community remove feature
Pdzly May 21, 2024
e3d7037
Merge remote-tracking branch 'origin/issue/119-native-api' into issue…
Pdzly May 21, 2024
f894d1f
Merge branch 'main' into issue/119-native-api
Pdzly May 22, 2024
5bbf85a
Add community and comment moderation features
Pdzly May 18, 2024
dd612d5
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly May 25, 2024
430baa2
Add comment pinning feature and refactor HTTP methods
Pdzly May 25, 2024
815c3f0
Add comment pinning functionality and refactor HTTP methods
Pdzly May 26, 2024
290cb35
Refactor application and extend functionality
Pdzly May 28, 2024
4a5a936
Merge branch 'main' into issue/119-native-api
Pdzly May 28, 2024
529971e
Refactor PersonAggregationController and add Auth checks
Pdzly May 28, 2024
c6f3615
Enhanced authorization checks and response models
Pdzly May 28, 2024
b4fe7c4
Add search functionality for instances and enhance APIs
Pdzly May 30, 2024
6fdc7b3
LINT
Pdzly May 30, 2024
1885ed3
Extend Search API to support communities, posts, and comments
Pdzly May 31, 2024
b67c2d8
Refactor code structure and add search functionality
Pdzly Jun 1, 2024
cf8726a
Optimize search functionality and improve code structure
Pdzly Jun 2, 2024
ac6a1dd
Refactor PostReport and PostLike repositories
Pdzly Jun 3, 2024
1ee4353
Add show and create methods to SublinksPostService
Pdzly Jun 3, 2024
74f00e8
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly Jun 3, 2024
3ddde7b
Enhance Post functionalities with language support and slur filter
Pdzly Jun 3, 2024
58b825a
Implement comment aggregate API and extend post functionalities
Pdzly Jun 6, 2024
f37650b
Implement comment aggregate API and extend post functionalities
Pdzly Jun 7, 2024
c450e00
Merge branch 'main' into issue/119-native-api
Pdzly Jun 7, 2024
dbf7b5d
Remove unnecessary comment from SQL migration script
Pdzly Jun 9, 2024
5a5ec06
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly Jun 10, 2024
dec9b68
Add announcement functionality to Sublinks API
Pdzly Jun 16, 2024
6977dff
Add CRUD operations and models for announcements
Pdzly Jun 17, 2024
9f157db
Add 'active' status and 'creator' field to announcements
Pdzly Jun 24, 2024
626ca5d
Refactor permissions checks in various services
Pdzly Jun 25, 2024
46def33
Add functionality for handling user metadata
Pdzly Jun 29, 2024
47c53fa
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly Jun 29, 2024
9a0a7eb
Refactor security configuration in SecurityConfig.java
Pdzly Jun 29, 2024
bd0ebc1
Rearrange JWT filter addition in SecurityConfig
Pdzly Jun 29, 2024
e99b145
Refactor SublinksPersonMetaDataMapper class
Pdzly Jun 30, 2024
d550b84
Refactor code and enhance User Data Management capabilities
Pdzly Jun 30, 2024
2ae010c
Refactor UserDataService to simplify metadata updates
Pdzly Jun 30, 2024
67b75a7
Reorder import statements in UserDataService
Pdzly Jul 2, 2024
abd18c6
Add authorization to instance config actions
Pdzly Jul 5, 2024
3769ed4
Refactor moderation models and update relevant methods
Pdzly Jul 6, 2024
b3be4a2
Add post aggregate functionality
Pdzly Jul 6, 2024
68da5cb
Update moderation actions from "remove" to "pin"
Pdzly Jul 7, 2024
4cf90cb
Add purge community operation and update delete action summary
Pdzly Jul 7, 2024
9afff74
Add post pinning, community pinning, and post purging methods
Pdzly Jul 9, 2024
015d23e
Update permissions and search functionalities in API
Pdzly Jul 15, 2024
230837a
Remove "purge" functionality and cleanup controllers
Pdzly Jul 15, 2024
0559f32
Change request mapping in SublinksPostAggregateController
Pdzly Jul 16, 2024
7c55988
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly Jul 29, 2024
c4e12ed
Enhance role management and authorization handling.
Pdzly Aug 2, 2024
3a74604
Update role management and ACL services for role expiration
Pdzly Aug 4, 2024
07c22d8
Refactor RequestResponse imports and enhance RolesController
Pdzly Aug 4, 2024
b1fe484
Merge branch 'refs/heads/main' into issue/119-native-api
Pdzly Aug 4, 2024
341daf8
Add inheritance support to roles and enhance role mapping.
Pdzly Aug 6, 2024
efb22c1
Enable Hikari pool suspension and update transactional annotations
Pdzly Aug 6, 2024
ba4f7d0
Refactor role saving to use saveAndFlush
Pdzly Aug 6, 2024
89e2b8d
Refactor role and permissions mapping for improved handling
Pdzly Aug 7, 2024
c058838
Enhance mapper configurations and simplify role permission logic
Pdzly Aug 8, 2024
d3be423
Refactor role service pagination and formatting of controller methods
Pdzly Aug 8, 2024
f364f08
Add missing newline for better readability
Pdzly Aug 8, 2024
9510654
Add purge post functionality to moderation
Pdzly Aug 9, 2024
eecb193
Implement purge post placeholder in SublinksPostService
Pdzly Aug 9, 2024
2625aae
Refactor method parameter name in purge method
Pdzly Aug 9, 2024
4172499
Add @NonNull annotations and comprehensive JavaDocs
Pdzly Aug 9, 2024
528cc2f
Adjust pagination to start from the first page.
Pdzly Aug 9, 2024
42662ce
Add SublinksCommentSortTypeMapper and refactor sort type logic
Pdzly Aug 9, 2024
a0c129d
Refactor comment entities and service methods
Pdzly Aug 11, 2024
700476e
Remove replies field from CommentResponse model
Pdzly Aug 11, 2024
15a53ea
Remove @Builder annotation from CommentResponse
Pdzly Aug 11, 2024
ebb7e41
Add instance data to PersonResponse and improve search handling
Pdzly Aug 11, 2024
eaad440
Refactor comment handling and clean up unused dependencies
Pdzly Aug 12, 2024
b79b558
Clarify comment handling in buildHierarchy method
Pdzly Aug 12, 2024
c4007d1
Fix incomplete comment in SublinksCommentService.java
Pdzly Aug 12, 2024
96cff2e
Fix typos in comment structuring logic documentation.
Pdzly Aug 12, 2024
fa2fed4
Refactor pagination logic and improve SQL query
Pdzly Aug 12, 2024
81bc5d8
Standardize API tags and refactor unauthorized exception
Pdzly Aug 12, 2024
53dd65a
Add Swagger annotations to community models
Pdzly Aug 13, 2024
66d4ee9
Add Swagger annotations to CommentResponse and UpdateComment
Pdzly Aug 14, 2024
cfa198a
Add Swagger annotations and rename model class
Pdzly Aug 14, 2024
04a03be
Fix indentation in SublinksCommentAggregateController
Pdzly Aug 19, 2024
6e4f6ef
Merge branch 'main' into issue/119-native-api
Pdzly Aug 19, 2024
9e0f129
Remove RolePermissionService from SublinksCommentModerationController
Pdzly Aug 26, 2024
2dbeae8
Add token handling to session management
Pdzly Sep 5, 2024
f0d250f
Format code for consistency in SublinksAnnouncementService
Pdzly Sep 19, 2024
1c0587a
Add JWT token to SublinksJwtPerson object
Pdzly Oct 12, 2024
caba87b
LINT
Pdzly Oct 18, 2024
b855280
Change submodule URL for 'docker' repository
Pdzly Oct 18, 2024
8de8fcd
Change submodule URL for 'docker' repository
Pdzly Oct 18, 2024
1da86ae
Add password encryption in SublinksPersonService
Pdzly Oct 18, 2024
23f0e92
Handle missing tokens in JwtFilters
Pdzly Nov 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ public static void main(String[] args) {
@Bean
public OpenAPI customOpenAPI() {

return new OpenAPI().components(new Components().addSecuritySchemes("bearerAuth",
new SecurityScheme().type(SecurityScheme.Type.HTTP).scheme("bearer").bearerFormat("JWT")));
return new OpenAPI()
.components(new Components()
.addSecuritySchemes("bearerAuth",
new SecurityScheme()
.type(SecurityScheme.Type.HTTP)
.scheme("bearer")
.bearerFormat("JWT")));
}

@Bean
public GroupedOpenApi v3OpenApi(@Value("${springdoc.version}") String appVersion,
@Value("${springdoc.pathsToMatch}") String pathsToMatch,
public GroupedOpenApi v3LemmyApi(@Value("${springdoc.version}") String appVersion,
@Value("#{${springdoc.servers}}") List<String> servers) {

return GroupedOpenApi.builder()
Expand All @@ -52,7 +56,24 @@ public GroupedOpenApi v3OpenApi(@Value("${springdoc.version}") String appVersion
.addOpenApiCustomizer(openApi -> openApi.info(
new Info().title("Lemmy OpenAPI Documentation").version(appVersion))
.servers(servers.stream().map(s -> new Server().url(s)).toList()))
.pathsToMatch(pathsToMatch)
.pathsToMatch("/api/v3/**")
.build();
}

@Bean
public GroupedOpenApi v1SublinksApi(@Value("${springdoc.version}") String appVersion,
@Value("#{${springdoc.servers}}") List<String> servers) {

return GroupedOpenApi.builder().group("v1")
.addOperationCustomizer((operation, handlerMethod) -> {
operation.addSecurityItem(new SecurityRequirement().addList("bearerAuth"));
return operation;
})
.addOpenApiCustomizer(openApi -> openApi.info(new Info()
.title("OpenAPI Documentation")
.version(appVersion))
.servers(servers.stream().map(s -> new Server().url(s)).toList()))
.pathsToMatch("/api/v1/**")
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public SiteResponse createSite(@Valid @RequestBody final CreateSite createSiteFo
config.reportEmailAdmins(false);

final InstanceConfig instanceConfig = config.build();

instanceConfigService.createInstanceConfig(instanceConfig);
slurFilterService.updateOrCreateLemmySlur(createSiteForm.slur_filter_regex());

instance.setInstanceConfig(instanceConfig);
Expand Down
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
}
}
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
) {

}
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
}
}
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 {

}
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 {
Pdzly marked this conversation as resolved.
Show resolved Hide resolved
ASC,
DESC
}
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
}
}
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
}
}
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
}
}
Loading
Loading