MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / printerModels

Function printerModels

src/astroprint/api/cloud.py:180–186  ·  view source on GitHub ↗
(manufacturer_id)

Source from the content-addressed store, hash-verified

178
179@api.route("/astroprint/manufacturers/<string:manufacturer_id>/models", methods=["GET"])
180def printerModels(manufacturer_id):
181 printerModels = astroprintCloud().printerModels(manufacturer_id)
182
183 if 'error' in printerModels:
184 return abort(500, printerModels['error'])
185 else:
186 return json.dumps(printerModels)
187
188@api.route("/astroprint/manufacturers/models/<string:model_id>", methods=["GET"])
189def printerModel(model_id):

Callers

nothing calls this directly

Calls 2

astroprintCloudFunction · 0.90
printerModelsMethod · 0.45

Tested by

no test coverage detected