Mock API documentation
This page contains free mock API documentation. This API endpoints are meant for learning and testing purposes only. The scenario is of banking domain. Feel free to browse, download, and stay updated with the latest versions.
Create user
This API endpoint enables the API user to create a mock bank user. The requirement to create a mock bank user is to have a name.
Authentication details
Authentication type : Basic Authentication
Username: test_username
Password: test_password
API request details
Request URL: https://www.busstopsolutions.com/controllers/mock.php
Request method: POST
Request header: Content-Type: application/x-www-form-urlencoded
Request body:
{
"action":"create_user",
"name":"John Smith"
}
Expected response:
{
"result":"True";
"user_id":"XXXX"
}
Types of output to expect:
- User created and user id returned
- Error message on missing API body
- Error message on missing attribute in the API body
- Error message on name attribute not being alphabetic