https://github.com/thompsonemerson/flutter-experimental
Repository for experiments with Flutter
https://github.com/thompsonemerson/flutter-experimental
dart development experimental flutter flutter-app mobile
Last synced: about 2 months ago
JSON representation
Repository for experiments with Flutter
- Host: GitHub
- URL: https://github.com/thompsonemerson/flutter-experimental
- Owner: thompsonemerson
- Created: 2020-05-30T18:00:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-30T18:46:36.000Z (about 6 years ago)
- Last Synced: 2025-04-13T11:59:17.763Z (about 1 year ago)
- Topics: dart, development, experimental, flutter, flutter-app, mobile
- Language: Dart
- Size: 34.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ByteBank
## Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
## Web API [required]
Spring Boot Web API for consumption of the ByteBank Flutter App
### Features
- `GET` show transactions
- `POST` create transaction
### How to run
```bash
$ java -jar server.jar
```
> the api was built based on Java 8, to work as expected, version 8 is recommended
### End-points
- GET: `/transactions`
```json
// demo response
[
{
"id": "b9663ef3-3749-400e-be8f-1280db94aac8",
"value": 200.00,
"contact": {
"name": "Fulano",
"accountNumber": 1000
},
"dateTime": "2020-05-30 15:32:13"
},
{
"id": "d1bf689c-caa2-4e45-b1fc-5a90b10d6d48",
"value": 200.00,
"contact": {
"name": "Beltrano",
"accountNumber": 1500
},
"dateTime": "2020-05-30 15:36:23"
}
]
```
- POST: `/transactions`
> It's necessary to send `password` = `1000` in the request header
```json
// demo request body
{
"value": 200.0,
"contact": {
"name": "Thompson",
"accountNumber": 1000
}
}
// demo response
{
"id": "b9663ef3-3749-400e-be8f-1280db94aac8",
"value": 200.00,
"contact": {
"name": "Thompson",
"accountNumber": 1000
},
"dateTime": "2020-05-30 11:07:26"
}
```