Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as JSON by registered user omemunama ( 9 years ago )
HOST: http://polls.apiblueprint.org/

# CateDuit

Income Transactions

## Income Transactions [/income_transactions]

### List All Income Transactions [GET]

+ Response 200 (application/json)

        {
            "income_transactions":[
            {
            "id":"1",
            "description":"gaji",
            "amount":"2000000",
            "date":"01-09-2016"
            },
            {
            "id":"2",
            "description":"deposito",
            "amount":"250000",
            "date":"01-09-2016"
            }
            ]
        }

## Expenses Transactions [/expenses_transactions]

### List All expenses Transactions [GET]

+ Response 200 (application/json)

        {
            "expenses_transactoins":[
            {
            "id":"1",
            "description":"bayar rumah",
            "amount":"550000",
            "date":"02-09-2016"
            },
            {
            "id":"2",
            "description":"beras",
            "amount":"150000",
            "date":"01-09-2016"
            }
            ]
        }

### Create a New Transaction [POST]

+ Request (application/json)

        {
            "id":"new id"
            "description":"new description",
            "amount":"new amount",
            "date":"new date"
        }

+ Response 201 (application/json)

    + Body

            {
                "status": "200",
                "messaege": "update done"
            }

+ Response 400 (application/json)

    + Body

            {
                "status": "400",
                "messaege": "update failed"
            }

 

Revise this Paste

Your Name: Code Language: