small helper file updates
This commit is contained in:
parent
26820d80f7
commit
7d6e7d46cd
6
Justfile
6
Justfile
@ -1,5 +1,7 @@
|
|||||||
|
# Brings the database up to the current migration
|
||||||
migrate-up:
|
migrate-up:
|
||||||
GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./gocook.db goose -dir ./api/migrations up
|
GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./cmd/gocook.db goose -dir ./internal/migrations up
|
||||||
|
|
||||||
|
# Rolls back one migration at a time
|
||||||
migrate-down:
|
migrate-down:
|
||||||
GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./gocook.db goose -dir ./api/migrations down
|
GOOSE_DRIVER=sqlite3 GOOSE_DBSTRING=./cmd/gocook.db goose -dir ./internal/migrations down
|
@ -16,6 +16,15 @@ Content-Type: application/x-www-form-urlencoded
|
|||||||
|
|
||||||
password=lol
|
password=lol
|
||||||
|
|
||||||
|
### Try to refresh the token
|
||||||
|
POST http://localhost:1323/api/v1/auth/refreshToken
|
||||||
|
Content-Type: application/json
|
||||||
|
Authorization: Bearer
|
||||||
|
|
||||||
|
{
|
||||||
|
"username": "test",
|
||||||
|
"refreshToken": ""
|
||||||
|
}
|
||||||
|
|
||||||
### Add Scope to test user
|
### Add Scope to test user
|
||||||
POST http://localhost:1323/api/v1/auth/scopes/add
|
POST http://localhost:1323/api/v1/auth/scopes/add
|
||||||
|
Loading…
Reference in New Issue
Block a user