You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to store the general configuration parameters for building a part in Fusion360. The overall idea is that each Fusion360 can have an assoicated JSON file that has stored metadata. When a user "registers" a Design with Shift, shift connects to Forge to looks JSON named "shift.json" linked to the selected part. If a componentID, the shift.json is upserted with _id: _componentID_ into the database (overwrite not merge).
The JSON has the following properties:
componentID - if left blank, shift will automatically create and add one when registering the component. Must be a valid uuid.
a list of parameters
each variable must have a type ('enum' or 'range')
each enum variable must specify the allowed values (Strings)
each range variable must specify the min/max/increment
environments a list of envs (eg. production, staging) that should expose this endpoint
main uuid of the script to run when the endpoint is called
version number (semvar)
a collection of tags (to be used for filtering for types of parts.
a tag is a valid javascript property name
the value of a tag must be a js primitive (e.g. string, number),
a license type
the responsible author
list of other authors
a config that is passed to the script when running this endpoint. Can be any valid JSON.
the engine to process this endpoint (which version of Shift to use)
We need to store the general configuration parameters for building a part in Fusion360. The overall idea is that each Fusion360 can have an assoicated JSON file that has stored metadata. When a user "registers" a Design with Shift, shift connects to Forge to looks JSON named "shift.json" linked to the selected part. If a
componentID
, the shift.json is upserted with_id: _componentID_
into the database (overwrite not merge).The JSON has the following properties:
componentID
- if left blank, shift will automatically create and add one when registering the component. Must be a valid uuid.parameters
'enum'
or'range'
)enum
variable must specify the allowed values (Strings)range
variable must specify the min/max/incrementenvironments
a list of envs (eg.production
,staging
) that should expose this endpointmain
uuid of the script to run when the endpoint is calledconfig
that is passed to the script when running this endpoint. Can be any valid JSON.engine
to process this endpoint (which version of Shift to use)Sample
shift.json
:So I just looked through the description for a
package.json
to make this list.@kaitlynhova What information should we add to support configuration of the front-end?
The text was updated successfully, but these errors were encountered: