[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Proposed url space for chart of accounts (1.5)


I would like to propose the following URL layout for chart of accounts:

The URL prefix is represented here by ... (probably /ledgersmb/1.5/:dbname/)

get accounts/
    Get the COA in HTML or JSON (if it comes through a jquery ajax request)
get accounts.[html|json|xml|csv]
    Get the COA in the specified format
post accounts.[json|xml|csv]
    Import the COA from the specified format, can also post the file to accounts/

get accounts/:accno
   Get information about the account by account number
post accounts/:accno
    Save account (may be an update, may not be idempotent)
get accounts/:accno.[html|json|xml]
     Gets the account info in the specified format
post accounts/:accno.[json|xml]
    Save the account represented in the payload.
delete accounts/:accno
   Delete the account (if not used).  Accounts may not be deleted once they havve been used.

How does this sound?  I expect to get started on this within a couple weeks.
Best Wishes,
Chris Travers

Efficito:  Hosted Accounting and ERP.  Robust and Flexible.  No vendor lock-in.
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
Ledger-smb-devel mailing list