Add cURL (or similar) section in the documention #529

Closed
opened 2026-03-13 07:51:17 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @arthur-fontaine on GitHub (Jan 4, 2025).

Is this suited for github?

  • Yes, this is suited for github

I want to test that it works without having to implement the login/signup in the application because I develop the backend before the application.

Describe the solution you'd like

I'd like a section in the documentation where I can just copy-paste CLI commands that use curl or http (HTTPie CLI).

Just commands to signup, login and get the session would enough.

Describe alternatives you've considered

I've looked at the route definitions at https://github.com/better-auth/better-auth/tree/main/packages/better-auth/src/api/routes, but that's not practical...

Additional context

No response

Originally created by @arthur-fontaine on GitHub (Jan 4, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. I want to test that it works without having to implement the login/signup in the application because I develop the backend before the application. ### Describe the solution you'd like I'd like a section in the documentation where I can just copy-paste CLI commands that use `curl` or [`http`](https://httpie.io/docs/cli) (HTTPie CLI). Just commands to signup, login and get the session would enough. ### Describe alternatives you've considered I've looked at the route definitions at https://github.com/better-auth/better-auth/tree/main/packages/better-auth/src/api/routes, but that's not practical... ### Additional context _No response_
Author
Owner

@arthur-fontaine commented on GitHub (Jan 4, 2025):

I hadn't seen the OpenAPI plugin...

@arthur-fontaine commented on GitHub (Jan 4, 2025): I hadn't seen the [OpenAPI plugin](https://www.better-auth.com/docs/plugins/open-api#navigate-to-apiauthreference-to-view-the-open-api-reference)...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#529