Bank API
Developer Portfolio
  1. bank_api
  • bank_api
    • heart_beat
      GET
    • create_account
      POST
    • get_account_by_id
      GET
    • list_acounts
      GET
    • update_account
      PATCH
    • delete_account
      DELETE
    • create_transfer
      POST
    • create_account
      POST
    • login
      POST
    • logout
      POST
    • refresh_token
      POST
  1. bank_api

login

Developing
POST
http://localhost:8080/v1/login

Request

Body Params application/json

Example
{
    "username": "admin",
    "password": "adminpass"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8080/v1/login' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "admin",
    "password": "adminpass"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "access_token": "string",
    "refresh_token": "string",
    "user": {
        "username": "string",
        "full_name": "string",
        "email": "string",
        "password_changed_at": "string",
        "created_at": "string"
    }
}
Modified at 2025-02-27 17:37:00
Previous
create_account
Next
logout
Built with