Reading a Record
Data can be read using the GET method. The output format is taken into account.
Deleting a Record
Only individual records can be deleted, using their detail URL (i.e. containing an identifier). Multiple records can only be deleted simultaneously by using actions during a standard update (see below).
If the record does not exist, a 404 code is returned. If the record was successfully deleted, a 200 code is returned.
Creating/Updating a Record
ABRA Flexi does not distinguish between POST and PUT operations. The meaning therefore always depends on the target address (URL) and the content that is sent. When saving records to the register listing address, records are either added or updated depending on whether an identifier was found.
If an operation is performed on a record detail, the message does not need to contain any identifier — the identifier is taken from the URL instead.
A record modified using the detail URL must always exist.
Using the listing URL, multiple records can be modified simultaneously. If the records include an identifier assigned by ABRA Flexi, that identifier must exist. If they use an external ID as identification, for example, any records not available in ABRA Flexi will be created.
Note: when using the POST method, data is expected in XML or JSON format and not as form data (multipart/form-data).
Choosing a Format When Creating a Record
The format in which data is expected and in which the response is returned is always the same and cannot be combined. The input format is determined either by the Content-Type header or by the extension in the URL.
Identifier of a New Record
The identifier of the created document is provided in several ways (see identifiers for more details)
HTTP Header
Location: https://demo.flexibee.eu:5434/c/demo/faktura-vydana/105As part of the response in ABRA Flexi XML format:
<winstrom version="1.0">
<success>true</success>
<result>
<id>105</id>
</result>
</winstrom>
