View on GitHub

documentation

Documentation for DdD products

A GET article look like this or this in the REST API.

Articles can be fetched in a paged manner, the “/api/article/page/{page}/pagesize/{pagesize}” route, can be used. The Swagger link is here.

A paged article comes in a meta-model, as a list in the Results property (see here).

Before POST’ing an articles, a supplier(see here) and an intemgroup(see here) must be present, as their Id’s are needed, in the article POST model.

To create an article, the “/api/article/create/style” route can be used. The Swagger is found here. This route creates both the Style(see here) and Variant(see here).

The VariantUpsertModel is present as a list in the VariantInformation property.

As the structure is a parent/children setup, a single Style can be created with multiple Variants.

If there is any doubt regarding, which parameters are in use, the “/api/article/parameterconfig” route, can be used to check. The Swagger link is here.