68 lines
874 B
Markdown
68 lines
874 B
Markdown
# API examples
|
|
|
|
## postWebhooksPayment
|
|
|
|
```bash
|
|
curl -X POST "http://localhost:3000/api/webhooks/payment"
|
|
```
|
|
|
|
## getUsersCsr
|
|
|
|
```bash
|
|
curl -X GET "http://localhost:3000/api/users/csr"
|
|
```
|
|
|
|
## getUsersSsr
|
|
|
|
```bash
|
|
curl -X GET "http://localhost:3000/api/users/ssr"
|
|
```
|
|
|
|
## postGraphqlExample
|
|
|
|
```bash
|
|
curl -X POST "http://localhost:3000/api/graphql-example"
|
|
```
|
|
|
|
## postTypedUser
|
|
|
|
```bash
|
|
curl -X POST "http://localhost:3000/api/typed-user"
|
|
```
|
|
|
|
## postLogout
|
|
|
|
```bash
|
|
curl -X POST "http://localhost:3000/api/logout"
|
|
```
|
|
|
|
## getHello
|
|
|
|
```bash
|
|
curl -X GET "http://localhost:3000/api/hello"
|
|
```
|
|
|
|
## postLogin
|
|
|
|
```bash
|
|
curl -X POST "http://localhost:3000/api/login"
|
|
```
|
|
|
|
## getEcho
|
|
|
|
```bash
|
|
curl -X GET "http://localhost:3000/api/echo"
|
|
```
|
|
|
|
## postEcho
|
|
|
|
```bash
|
|
curl -X POST "http://localhost:3000/api/echo"
|
|
```
|
|
|
|
## getMe
|
|
|
|
```bash
|
|
curl -X GET "http://localhost:3000/api/me"
|
|
```
|