git clone https://github.com/dumindu/key-value-versions.gitcd key-value-versions/key-value-versions-appcomposer installnpm install && npm run buildcp .env.example .envphp artisan key:generatephp artisan passport:keys./vendor/bin/sail up./vendor/bin/sail artisan migrate
💡 Need to run Docker.
- Register
- Login
- Profile Settings
Use Yaak to access the Open API documentation/ setup in the __openapi folder.
[POST] api/v1/register
- Accept:
application/json
{
"name": "User Name",
"email": "user@email.com",
"password": "some_password",
"password_confirmation": "some_password"
}[POST] oauth/token
- Accept:
application/json
{
"grant_type": "password",
"client_id": "01989503-1ce8-735f-a487-0729ef4f1d1b",
"client_secret": "WqkuICsupCfBL1xLt71TfBSaaLVlaiTd0iMSudpu",
"username": "user@email.com",
"password": "some_password",
"scope": "*"
}[POST] /api/v1/keys
- Accept:
application/json - Authorization:
Bearer <access-token>
{
"key": "001",
"value": "value 001"
}[GET] /api/v1/keys
- Accept:
application/json - Authorization:
Bearer <access-token>
[GET] /api/v1/keys/{key}
- Accept:
application/json - Authorization:
Bearer <access-token>
[GET] /api/v1/keys/{key}/history
- Accept:
application/json - Authorization:
Bearer <access-token>
