You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #975: New API endpoint to upload pre-existing keys
04f50e4 docs: [#974] update add key endpoint doc (Jose Celano)
583b305 test: [#874] new key generation endpoint (Jose Celano)
09beb52 feat: [#974] new API endpoint to upload pre-existing keys (Jose Celano)
Pull request description:
You can test it with:
```console
curl -X POST http://localhost:1212/api/v1/keys?token=MyAccessToken \
-H "Content-Type: application/json" \
-d '{
"key": "Xc1L4PbQJSFGlrgSRZl8wxSFAuMa21z7",
"seconds_valid": 7200
}'
```
The `key` field is optional. If it's not provided, a random key will be generated.
### Subtasks
- [x] New endpoint to upload a pre-existing key.
- [x] Add E2E test.
- [x] Add new endpoint to rustdoc.
- [x] Mark the current endpoint to generate random keys as deprecated.
ACKs for top commit:
josecelano:
ACK 04f50e4
Tree-SHA512: 6c788f428dbaa5960b87c6ca8c0cc3229e62a3f18de4e5a0e66e5a498e3911cb1ee553251962b6ba022e8a82ebc9fe4d78849119b28abbe5027c207987fddd3c
0 commit comments