Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
iwokonl committed Apr 19, 2024
1 parent d4653c6 commit 05abd72
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ public class AuthController {
@ApiResponse(responseCode = "401", description = "Nieautoryzowany dostęp"),
@ApiResponse(responseCode = "403", description = "Brak dostępu")
}


)
@PostMapping("/userinfo")
public ResponseEntity<Map<String,String>> currentUserName() {
Expand Down Expand Up @@ -79,7 +77,7 @@ public ResponseEntity<UserDto> login(@RequestBody CredentialsDto coridentialsDto
return ResponseEntity.ok(user);
}


@Operation(
description = "Rejestracja użytkownika",
summary = "Rejestracja użytkownika",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package pl.kantor.backend.MVC.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
Expand All @@ -12,6 +13,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/currency")
@Tag(name = "Waluty")
public class CurrencyController {


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package pl.kantor.backend.MVC.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.Authentication;
Expand All @@ -18,6 +19,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/ForeignCurrencyAccount")
@Tag(name = "Konta walutowe")
public class ForeignCurrencyAccountController {
private final ForeignCurrencyAccountService foreignCurrencyAccountService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.paypal.api.payments.Payment;
import com.paypal.api.payments.PayoutBatch;
import com.paypal.base.rest.PayPalRESTException;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;

import org.springframework.http.HttpHeaders;
Expand All @@ -25,10 +26,11 @@

import java.util.Map;


@RestController
@Controller
@RequiredArgsConstructor
@RequestMapping("/payment")
@Tag(name = "Paypal")
public class PaypalController {


Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package pl.kantor.backend.MVC.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import pl.kantor.backend.MVC.model.Transaction;
import pl.kantor.backend.MVC.service.TransactionService;

@RestController
@RequestMapping("/transactions")
@Tag(name = "Transakcje")
public class TransactionController {

@Autowired
Expand Down

0 comments on commit 05abd72

Please sign in to comment.