machinabio / limbforge-service

Single-purpose microservice to generate STLs from parametric CAD designs.
Apache License 2.0
3 stars 1 forks source link

DB Seeds for front-end #11

Closed luzlab closed 7 years ago

luzlab commented 7 years ago

What information is needed to seed the front-end rails app?

@kaitlynhova Can you just copy/paste a JSON that I can send you from the backend to start a new limbforge rails app?

kaitlynhova commented 7 years ago

Whiteboarding times: unnamed

  1. RESPONSE: DATA URI
  2. ZIP FILE DOWNLOAD endpoint
  3. Amputation Levels endpoint

RESPONSE:

{"transradial": true, etc }

*true/false = if we have a component for that amputation level or not

  1. Components endpoint

RESPONSE:

[
    {
            slug: 'xrp-arm'
            name: 'XRP arm',
            icon:  'https://www.AWSurlhere',
            creator: 'Limbforge',
            component_type: 'passive',
            weight: '250-350g',
            description: 'The XRP Arm is a lightweight, highly cosmetic passive device with several terminal device options. uses:  passive cosmetic, social functions',
            uses: 'social occasions, supporting objects',
            print_time: '14-20hrs'
    }
]
  1. Measurements endpoint

    RESPONSE

[
    {
       name: 'C2',
       step: 0.5,
       upper_range: 28,
       measurement_unit: "cm",
       lower_range: 20,
       default: 25,
       instructions: 'instructions go here'
    }
]
  1. Terminal Devices endpoint

RESPONSE

[
    {
       slug: 'terminal-device-name'
       name: 'terminal device name',
    }
]
luzlab commented 7 years ago

Perfect! Let's make 6 issues - one for each endpoint.

luzlab commented 7 years ago

I think we're good. All of the other issues have been created (and are nearly done).