- Server
- Gateway
- CLI
- Memória
- PostgreSQL
- list
- get
- create
- update
- delete
- Endpoints
Version | HTTP | Path |
---|---|---|
/v1 | GET | /user |
/v1 | GET | /user/1 |
/v1 | POST | /user |
/v1 | PUT | /user/1 |
/v1 | DELETE | /user/1 |
curl --request GET \
--url http://127.0.0.1:8081/v1/user
curl --request GET \
--url http://127.0.0.1:8081/v1/user/1
curl --request POST \
--url http://127.0.0.1:8081/v1/user \
--header 'content-type: application/json' \
--data '{
"user": {
"username": "admin",
"state": 2
}
}'
curl --request PUT \
--url http://127.0.0.1:8081/v1/user/1 \
--header 'content-type: application/json' \
--data '{
"user": {
"id": "1",
"username": "admin",
"state": 5
}
}'
curl --request DELETE \
--url http://127.0.0.1:8081/v1/user/1
openssl genrsa -out server.key
openssl req -new -sha256 -key server.key -out server.csr
openssl x509 -req -days 3650 -in server.csr -out server.crt -signkey server.key
openssl rand -base64 64
- Status codes nos erros
- Validação de contexto - timeout, interrupt...
- JWT Manager
- Interceptors
- Server
- unary
- stream
- Client
- unary
- stream
- Server
- CLI
- Testes - client, server