Gitlab Community Edition Instance
This MR moves most of the functionality out of tapi.xqm
into separate designated modules. As a result, tapi.xqm
mainly contains the RESTXQ endpoints.
In detail, the following modules have been created:
tapi-collection.xqm
: creating all information necessary for the TextAPI collection endpoint (/collection.json
)tapi-manifest.xqm
: creating all information necessary for the TextAPI collection endpoint (/manifest.json
)tapi-item.xqm
: creating all information necessary for the TextAPI collection endpoint (/latest/item.json
)tapi-html.xqm
: handling the creation of the HTML presentation of a given page (/content/xxxx.html
)tapi-txt.xqm
: handling the creation of the TXT presentation of a given page (/content/xxxx.txt
) which is needed for the collationAll modules have been provided with extensive tests. The module functions and expected parameters aim to be descriptive to such a degree that additional documentation can be kept to a minimum (following Robert Martin's and Martin Fowler's advice).
Furthermore, several testsuites are considered and inspected during the unit_test
stage of the CI/CD since every module of the ones mentioned above has its own unit testing module.
As a developer, having clean and separate modules speeds up my work, and more tests assure my that everything is working fine.
Are we able to test this new feature?
build.properties
.