The GoBank API is a lightweight and efficient JSON API server implemented in Go. It provides endpoints for managing bank accounts and performing account-related operations. With easy-to-use RESTful endpoints, developers can quickly integrate banking functionalities into their applications.
- Handle GET requests to retrieve account information.
- Handle POST requests to create new accounts.
- Handle DELETE requests to delete existing accounts.
- Handle error responses gracefully.
git clone https://github.com/nickemma/gobank-api.git
cd gobank-api
go build / make build
go run ./ OR make run
By default, the server listens on localhost:5000. You can customize the listen address by specifying the LISTEN_ADDR environment variable.
GET /account/{id}
Retrieves account information based on the provided ID.
POST /account
Creates a new account. Requires a JSON payload containing account details (e.g., first name, last name).
DELETE /account/{id}
Deletes an existing account based on the provided ID.
The API server handles errors gracefully and returns appropriate error responses with descriptive error messages in JSON format.
- Gorilla Mux: https://github.com/gorilla/mux
๐ค Nicholas Emmanuel
- GitHub: @NickEmma
- Twitter: @techieEmma
- LinkedIn: @Nicholas Emmanuel
Contributions are welcome! Feel free to submit issues or pull requests.
Please be advised that our project is released under the terms of a License. Please ensure that you read and understand the terms of the MIT License before using our project.
- Creator for the inspiration for this project.
- LazyCoders For help and support throughout my development journey