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

create_account

Developing
POST
http://localhost:8080/accounts

Request

Body Params application/json

Example
{
    "owner": "{{$person.fullName}}",
    "currency": "USD"
}

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/accounts' \
--header 'Content-Type: application/json' \
--data-raw '{
    "owner": "{{$person.fullName}}",
    "currency": "USD"
}'

Responses

🟢201Created
application/json
Body

Example
{
    "id": 0,
    "owner": "string",
    "currency": "string",
    "created_at": "string",
    "balance": 0
}
Modified at 2025-02-23 11:53:35
Previous
heart_beat
Next
get_account_by_id
Built with