Label in Fledge: Stuklijst koop-/maakdelen
| URL | https://odata-api.fledge.nl/v2-8/PartsListBuyMakeParts |
|---|---|
| Key | administration_idparts_list_assembly_idparts_list_buy_make_part_idparts_list_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BEHEERPRODUCTIE |
| Scopes | FLEDGE_PORTAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/PartsListBuyMakeParts" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=parts_list_assembly_id,parts_list_buy_make_part_id,parts_list_header_id,description_1,description_2,description_3' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PartsListBuyMakeParts');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'parts_list_assembly_id,parts_list_buy_make_part_id,parts_list_header_id,description_1,description_2,description_3');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/PartsListBuyMakeParts" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("parts_list_assembly_id,parts_list_buy_make_part_id,parts_list_header_id,description_1,description_2,description_3"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
GET https://odata-api.fledge.nl/v2-8/PartsListBuyMakeParts(administration_id=1,parts_list_assembly_id={parts_list_assembly_id},parts_list_buy_make_part_id={parts_list_buy_make_part_id},parts_list_header_id='{parts_list_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
parts_list_header_idkey | String | Calculatienummer |
parts_list_buy_make_part_idkey | Int32 | Volgnummer |
parts_list_assembly_idkey | Int32 | Schrapnummer |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
drawing_number | String | Tekeningnummer |
memo | String | Memo |
pos_number | String | Pos-nummer |
revision | String | Revisie |
storage | Decimal | Opslag |
supplier_article_text | Int32 | Leverancier/Artikel/Tekst |
article_id | String | Artikelcode |
is_quantity_independent | Boolean | Aantal onafhankelijk |
determine_surface | Boolean | Bepaal oppervlakte |
determine_weight | Boolean | Bepaal gewicht |
quantity | Decimal | Aantal |
status | Int32 | Status (voorraad/produceren) |
article_custom_field_set_id | Int32 | Volgnummer |
creditor_id | Int32 | Crediteurnummer |
sequence | Int32 | Volgorde |
Relations
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Article | Articles | one |
PartsListAssembly | PartsListAssemblies | one |
PartsListHeader | PartsListHeaders | one |
PartsListAssemblyReferences | PartsListAssemblyReferences | many |