(manufacturer_id)
| 178 | |
| 179 | @api.route("/astroprint/manufacturers/<string:manufacturer_id>/models", methods=["GET"]) |
| 180 | def 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"]) |
| 189 | def printerModel(model_id): |
nothing calls this directly
no test coverage detected