MutualFundBroker-API
  1. mutual_fund_broker
MutualFundBroker-API
  • mutual_fund_broker
    • User Registration
      POST
    • User Login
      POST
    • Add Investment
      POST
    • Fetch Portfolio
      GET
    • Fetch Funds by Fund Family
      GET
  1. mutual_fund_broker

User Login

POST
/users/login
Authenticates a user based on their email and password. Upon successful login, this endpoint returns an access token that can be used for authenticating subsequent requests to protected resources.

Request

Header Params

Body Params application/x-www-form-urlencoded

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:8000/users/login' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=user@example.com' \
--data-urlencode 'password=strongpassword'

Responses

🟢200Success
application/json
Body

Example
{
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyIiwiZXhwIjoxNzM0ODc5NTQ2fQ.f87jpF2ZlxNldnUFsosDIr5o6Ff3ZvtHdug054NjonM",
    "token_type": "bearer"
}
🟠422Parameter Error
Modified at 2024-12-22 14:30:08
Previous
User Registration
Next
Add Investment
Built with