Prompting API Routes

To start prompting api routes, go to workstation.justprintit.ai and register/login.

You can prompt Printer for new api routes. Printer will follow the model schemas found in prisma.schema. In this example prompt, I prompted to create an api route to create posts. Here is the example prompt I used.

Create a new action to create posts

Note that Printer created a new file with the path /app/api/post. It also used a POST request. You can prompt for different route types if needed.

If you want to add multiple routes to the same path and the file already exists. Add the file to the prompt context and then prompt for a new GET, POST, PATCH, DELETE request at the desired path.