Skip to content

Expand analyzers project to provide codefixes to build out the API endpoint #2

@kswoll

Description

@kswoll

Right now it's a real pain to create a new API endpoint. We should allow you to define one of the classes (probably the interface) and then provide a codefix that will do the rest of the work:

  • Create the new API implementation in the correct folder location (see https://stackoverflow.com/questions/27945891/how-to-create-a-new-class-in-a-codefixprovider)
  • Add the new route to the Routes class. This one will probably require extensive interrogation of the provided implementation, and we will need some way to definitely mark the correct class (if more than one exists). For that we would ideally leave the cursor where the user would supply the route path so they could fill that in. From that point, everything should compile and actual implementation logic can proceed from there with minimal fuss except creating the original interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions