Skip to content

Commit

Permalink
disable springfox
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander14121 committed Apr 3, 2024
1 parent 983ac49 commit 6885a6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ dependencies {

implementation 'io.micrometer:micrometer-registry-prometheus'

implementation 'io.springfox:springfox-boot-starter:3.0.0'
implementation 'io.springfox:springfox-swagger-ui:3.0.0'
// implementation 'io.springfox:springfox-boot-starter:3.0.0'
// implementation 'io.springfox:springfox-swagger-ui:3.0.0'

//implementation 'com.google.guava:guava:30.1-jre'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package no.fint.portal.selfregister.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import no.fint.portal.exceptions.EntityFoundException;
import no.fint.portal.exceptions.EntityNotFoundException;
Expand All @@ -21,7 +21,7 @@

@Slf4j
@RestController
@Api(tags = "Self Register")
//@Api(tags = "Self Register")
@RequestMapping(value = "/api/self/register")
public class RegisterController {

Expand All @@ -32,7 +32,7 @@ public RegisterController(ContactService contactService) {
}


@ApiOperation("Add new contact")
// @ApiOperation("Add new contact")
@PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Contact> addContact(
@RequestHeader(name = "x-nin") String nin,
Expand All @@ -41,7 +41,6 @@ public ResponseEntity<Contact> addContact(
throw new UpdateEntityMismatchException("Invalid NIN");
}
log.info("Contact: {}", contact);

if (contactService.addContact(contact)) {
return ResponseEntity.status(HttpStatus.CREATED).body(contact);
}
Expand All @@ -53,7 +52,7 @@ public ResponseEntity<Contact> addContact(
);
}

@ApiOperation("Update contact")
// @ApiOperation("Update contact")
@PutMapping(consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Contact> updateContact(
@RequestHeader(name = "x-nin") String nin,
Expand Down

0 comments on commit 6885a6e

Please sign in to comment.