Skip to content

0.9.0 — exporting the endpoint under the caret

Choose a tag to compare

@dskripchenko dskripchenko released this 20 Aug 10:17
· 12 commits to main since this release

Added

  • Export the endpoint under the caret as a request. Right-click a controller
    method or an action in the route map, pick a format — Bruno, cURL, HTTP
    Client, Postman, Markdown — and the request opens in a scratch file, ready to
    send, edit, or save into wherever the collection lives.

    The producing is the application's: this runs api:export --endpoint, the
    same rule api:lint established. The docblock-to-OpenAPI pipeline belongs to
    the package, and a Kotlin copy of it would be a second truth that starts
    drifting the day either side is touched.

    What the plugin adds is the part that was tedious: knowing which endpoint is
    meant. Working out that the method under the caret is routed as
    v1.order.create — by which version, under which controller key — is exactly
    the lookup nobody wants to do in a terminal, and the reason the export was
    mostly unused.

    The same thing is in the endpoint list's context menu. Requires
    dskripchenko/laravel-api 5.9 or newer, where --endpoint and --stdout
    exist.