templates/documentation/ql.twig line 1
{% extends "base.twig" %}
{% block body %}
<h3>Quality Label</h3>
<div class="form-row">
<div class="col-12 mb-3">
<h4>Endpoint</h4>
<div>Any call to the module needs to use the base URL {{ app.request.getSchemeAndHttpHost() }}/{{ service }}.</div>
</div>
</div>
<div class="accordion" id="documentation">
<div class="accordion-item">
<h2 class="accordion-header" id="header-distributorDetails">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-distributorDetails" aria-controls="collapse-distributorDetails">/distributor/details</button>
</h2>
<div id="collapse-distributorDetails" class="accordion-collapse collapse" aria-labelledby="header-distributorDetails" data-bs-parent="#documentation">
<ul class="accordion-body list-group p-0">
<li class="list-group-item d-flex justify-content-between align-items-center">
Retrieves details on a given distributor.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
distributor: int<br/>
The internal distributor ID. See /distributor/list.
<span class="badge bg-danger badge-pill">Required</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal distributor ID.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
title: string<br/>
The distributor's name.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
street: string<br/>
The distributor's street address.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
zip: string<br/>
The distributor's zip code.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
place: string<br/>
The distributor's place.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
country: string<br/>
The distributor's country code as defined by ISO 3166-1 alpha-2.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
labelCount: int<br/>
The amount of valid quality labels the distributor holds.
</li>
</ul>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="header-distributorList">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-distributorList" aria-controls="collapse-distributorList">/distributor/list</button>
</h2>
<div id="collapse-distributorList" class="accordion-collapse collapse" aria-labelledby="header-distributorList" data-bs-parent="#documentation">
<ul class="accordion-body list-group p-0">
<li class="list-group-item d-flex justify-content-between align-items-center">
Retrieves a list of distributors. The scope is limited to those holding valid labels.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">No arguments.</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal distributor ID.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
title: string<br/>
The distributor's name.
</li>
</ul>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="header-heatPumpTypeList">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-heatPumpTypeList" aria-controls="collapse-heatPumpTypeList">/heatPumpType/list</button>
</h2>
<div id="collapse-heatPumpTypeList" class="accordion-collapse collapse" aria-labelledby="header-heatPumpTypeList" data-bs-parent="#documentation">
<ul class="accordion-body list-group p-0">
<li class="list-group-item d-flex justify-content-between align-items-center">
Retrieves heat pump types.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">No arguments.</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal heat pump type ID.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
title: string<br/>
The heat pump type as human-readable string.
</li>
</ul>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="header-labelDetails">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-labelDetails" aria-controls="collapse-labelDetails">/label/details</button>
</h2>
<div id="collapse-labelDetails" class="accordion-collapse collapse" aria-labelledby="header-labelDetails" data-bs-parent="#documentation">
<ul class="accordion-body list-group p-0">
<li class="list-group-item d-flex justify-content-between align-items-center">
Retrieves details on a given quality label.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
label: int<br/>
The internal label ID. See /label/list.
<span class="badge bg-danger badge-pill">Required</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal label ID.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
title: string<br/>
The label title which corresponds to the official label ID formatted as XX-HP-YYYYY.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
issueDate: int<br/>
The label's issue date formatted as UNIX timestamp.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
expirationDate: int<br/>
The label's expiration date formatted as UNIX timestamp.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
distributor: int<br/>
The internal distributor ID. See /distributor/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
nationalCommission: int<br/>
The internal national commission ID. See /nationalCommission/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal heat pump type ID. See /heatPumpType/list.
</li>
</ul>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="header-labelList">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-labelList" aria-controls="collapse-labelList">/label/list</button>
</h2>
<div id="collapse-labelList" class="accordion-collapse collapse" aria-labelledby="header-labelList" data-bs-parent="#documentation">
<ul class="accordion-body list-group p-0">
<li class="list-group-item d-flex justify-content-between align-items-center">
Retrieves a list of quality labels. The scope is limited to valid labels.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
distributor: int<br/>
The distributor ID of the labels to be retrieved. See /distributor/list.
<span class="badge bg-success badge-pill">Optional</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
heatPumpType: int<br/>
The heat pump type ID of the labels to be retrieved. See /heatPumpType/list.
<span class="badge bg-success badge-pill">Optional</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
nationalCommission: int<br/>
The national commission ID of the labels to be retrieved. See /nationalCommission/list.
<span class="badge bg-success badge-pill">Optional</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
searchTerm: string<br/>
The search term which is matched against the distributors' title, the labels' titles and the models' titles.
<span class="badge bg-success badge-pill">Optional</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal label ID.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
title: string<br/>
The label title which corresponds to the official label ID formatted as XX-HP-YYYYY.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
distributor: int<br/>
The internal distributor ID. See /distributor/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
nationalCommission: int<br/>
The internal national commission ID. See /nationalCommission/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal heat pump type ID. See /heatPumpType/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
issueDate: int<br/>
The label's issue date formatted as UNIX timestamp.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
expirationDate: int<br/>
The label's expiration date formatted as UNIX timestamp.
</li>
</ul>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="header-labelPdf">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-labelPdf" aria-controls="collapse-labelPdf">/label/pdf</button>
</h2>
<div id="collapse-labelPdf" class="accordion-collapse collapse" aria-labelledby="header-labelPdf" data-bs-parent="#documentation">
<ul class="accordion-body list-group p-0">
<li class="list-group-item d-flex justify-content-between align-items-center">
Retrieves the quality label PDF file.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
label: int<br/>
The internal label ID. See /label/list.
<span class="badge bg-danger badge-pill">Required</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns a PDF file.</h4></li>
</ul>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="header-modelDetails">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-modelDetails" aria-controls="collapse-modelDetails">/model/details</button>
</h2>
<div id="collapse-modelDetails" class="accordion-collapse collapse" aria-labelledby="header-modelDetails" data-bs-parent="#documentation">
<ul class="accordion-body list-group p-0">
<li class="list-group-item d-flex justify-content-between align-items-center">
Retrieves details on a given model.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
model: int<br/>
The internal model ID. See /model/list.
<span class="badge bg-danger badge-pill">Required</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal label ID.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
title: string<br/>
The model title.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
label: int<br/>
The internal ID of the label the model is assigned to. See /label/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
distributor: int<br/>
The internal ID of the distributor the model is assigned to. See /distributor/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
nationalCommission: int<br/>
The internal ID of the national commission the label is assigned to. See /nationalCommission/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
heatPumpType: int<br/>
The internal heat pump type ID. See /heatPumpType/list.
</li>
</ul>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="header-modelList">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-modelList" aria-controls="collapse-modelList">/model/list</button>
</h2>
<div id="collapse-modelList" class="accordion-collapse collapse" aria-labelledby="header-modelList" data-bs-parent="#documentation">
<ul class="accordion-body list-group p-0">
<li class="list-group-item d-flex justify-content-between align-items-center">
Retrieves a list of models. The scope is limited to models assigned to valid labels.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
distributor: int<br/>
The distributor ID of the labels to be retrieved. See /distributor/list.
<span class="badge bg-success badge-pill">Optional</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
heatPumpType: int<br/>
The heat pump type ID of the labels to be retrieved. See /heatPumpType/list.
<span class="badge bg-success badge-pill">Optional</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
nationalCommission: int<br/>
The national commission ID of the labels to be retrieved. See /nationalCommission/list.
<span class="badge bg-success badge-pill">Optional</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
searchTerm: string<br/>
The search term which is matched against the distributors' title, the labels' titles and the models' titles.
<span class="badge bg-success badge-pill">Optional</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal label ID.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
title: string<br/>
The model title.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
label: int<br/>
The internal ID of the label the model is assigned to. See /label/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
distributor: int<br/>
The internal ID of the distributor the label is assigned to. See /distributor/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
nationalCommission: int<br/>
The internal ID of the national commission the label is assigned to. See /nationalCommission/list.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal heat pump type ID. See /heatPumpType/list.
</li>
</ul>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="header-nationalCommissionDetails">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-nationalCommissionDetails" aria-controls="collapse-nationalCommissionDetails">/nationalCommission/details</button>
</h2>
<div id="collapse-nationalCommissionDetails" class="accordion-collapse collapse" aria-labelledby="header-nationalCommissionDetails" data-bs-parent="#documentation">
<ul class="accordion-body list-group p-0">
<li class="list-group-item d-flex justify-content-between align-items-center">
Retrieves details on a given national commission.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
nationalCommission: int<br/>
The internal national commission ID. See /nationalCommission/list.
<span class="badge bg-danger badge-pill">Required</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal national commission ID.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
title: string<br/>
The national commission's name.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
street: string<br/>
The national commission's street address.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
zip: string<br/>
The national commission's zip code.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
place: string<br/>
The national commission's place.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
country: string<br/>
The national commission's country code as defined by ISO 3166-1 alpha-2.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
labelCount: int<br/>
The amount of valid quality labels the national commission has issued.
</li>
</ul>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="header-nationalCommissionList">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-nationalCommissionList" aria-controls="collapse-nationalCommissionList">/nationalCommission/list</button>
</h2>
<div id="collapse-nationalCommissionList" class="accordion-collapse collapse" aria-labelledby="header-nationalCommissionList" data-bs-parent="#documentation">
<ul class="accordion-body list-group p-0">
<li class="list-group-item d-flex justify-content-between align-items-center">
Retrieves a list of national commission. The scope is limited to those having issued currently valid labels.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">No arguments.</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
<li class="list-group-item d-flex justify-content-between align-items-center">
id: int<br/>
The internal national commission ID.
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
title: string<br/>
The national commission's name.
</li>
</ul>
</div>
</div>
</div>
{% endblock %}