Skip to content

Figure out how to call BlueAPI plans using their direct entry point #101

@olliesilvester

Description

@olliesilvester

From today's discussed between @noemifrisina and I

We currently need an extra entry point for each BlueAPI plan that will be called by the web GUI (see DiamondLightSource/mx-bluesky#1565). The only difference between this new entry point and the other one that it calls is that the params pydantic model is separated out into individual parameters.

There are two reasons for this:

  1. BlueAPI isn't happy with post requests which just send a json blob -it will complain about types. (This might be fixed now, part of this issue is confirming this)
  2. We don't know how to construct our "params" object in type script

Acceptance Criteria

  1. Confirm that 1.) above is still a problem. If it is, push for a fix
  2. Figure out how to construct params in typescript and do this change. I'm sure it's possible, but I don't know much typescript
  3. Implement changes and remove duplicated entry points

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions