Code Monkey home page Code Monkey logo

money-accounting-app's People

Contributors

isergius avatar

Watchers

 avatar  avatar

money-accounting-app's Issues

Create screen list of records

Click on floating button must be open clear edit dialog.
Click on item must be open edit dialog for editing this item.
Example the screen:

money-accounting-app 1

Create dialog for edit record

Expense and Income - is toggle type of the Record
Amount - is the same.
Currency - show list of currencies.
Description - Text with length 100 chars.
Date - date of record.
buttons:
SAVE - save state and close the dialog.
DISCARD - cancel editing and close dialog.
DELETE - delete the record and close dialog.

The dialog can be two state "Create new record" and "Edit existing record"
When create new Record

money-accounting-app 3

When edit existing Record

money-accounting-app 4

Create repository for Record entity

Repository must getting data from service api.

  1. Getting all records:
    -> GET "{baseUrl}/record/"
    JSON schema of response body:
<-
200 OK
[{ "Title": "Record",
  "type": "object",
  "properties":{
    "id":{
     "type":"String",
     "format":"uuid"
    },
    "amount":{
      "type":"String"
    },
    "currency":{
      "type":"String"
    },
    "description":{
      "type":"String"
    },
    "date": {
      "type":"long",
      "format":"timestamp"
    }
  },
  "required":["id","amount","currency","date"]
}...]
  1. For create record entity need reserve ID
    method:
    -> GET "/record/generateId
    JSON schema response body
<-
{"title":"id",
 "type":"object",
 "properties":{
   "id":{
     "type":"String",
     "format":"uuid"
   },
   "ttl":{
     "type":"long",
     "format":"duration"
   }
}
<- success response code 200

and save entity
method:
-> PUT "/record/{:id}"
JSON schema of request body:

->
{ "Title": "Record",
  "type": "object",
  "properties":{
    "amount":{
      "type":"String"
    },
    "currency":{
      "type":"String"
    },
    "description":{
      "type":"String"
    },
    "date": {
      "type":"long",
      "format":"timestamp"
    }
  },
  "required":["id","amount","currency"]
}

<- success response code 201
<- failure response code 400

  1. For delete request
    method:
    -> DELETE "/record/{id}"
    <- success response code 200

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.