SQL-Ledger GL routes according to OpenAPI specifications

by Hashim, Wednesday, August 16, 2023, 07:45 (255 days ago) @ sweitmann

As discussed before, these are the following updates that have been done so far based on feedback from Bohdan.:


1. Route names have been changed to follow the structure /gl/transaction.

2. Line data has been changed to use camelcase.

3. GL Transaction and GL transaction line components have been created, and all routes now should follow these for a structured and standard output. We can also discuss these components further to see if we need add anything that's missing.

4. Error handling for post has been added and we should be getting appropriate error codes with an JSON error response. In my testing, I got the appropriate error responses but some unexpected errors right now might still return a HTML response.

5. Error handling for the database not existing been added. This is a simple check right now but later we can update this same check for authentication as well.


All these changes are live and available on the swagger along with a test server for testing:
https://app.swaggerhub.com/apis/HASHIM1SAQIB/SqlLedgerRest/1

Looking forward any additional feedback needed and improving:)


Complete thread:

 RSS Feed of thread