Open kaitlynhova opened 7 years ago
GET /cad/preview/DEVICEorTD_SLUG?C1=12.0&C2=28
Returns File (Binary STL)
I'm going to break this up into 3 endpoints.
GET /cad/preview/DEVICEorTD_SLUG/sync?C1=12.0&C2=28
- returns immediately if already cached, otherwise blocks until component is generated.
GET /cad/preview/DEVICEorTD_SLUG?C1=12.0&C2=28
- returns immediately if already cached, otherwise returns 503 (Service Temporarily Unavailable) and generates a request to generate the component.
GET /cad/preview/DEVICEorTD_SLUG/info?C1=12.0&C2=28
- returns information about the component (cached, generated date, size, etc).
follow up to https://github.com/machinabio/limbforge-service/issues/11