/crimpfitting/{crimpfittingId} v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
CrimpFittings
getCrimpFittingId
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/crimpfitting/{crimpfittingId}", {
method: "GET",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
GET /crimpfitting/{crimpfittingId}
Gets a hose fitting (crimpFitting)
Retrieves a specific crimp fitting by ID. Validates and sanitizes the crimpFittingId, enriches the crimp fitting data with brand properties, and returns the detailed crimp fitting information.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| crimpfittingId | path | string(mongo-id) | true | The MongoDB ID of the hose fitting. |
Example responses
500 Response
"error"
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | A hose fitting | None |
| 500 | Internal Server Error | Server error during lookup. | string |
