46 lines
1 KiB
HTTP
46 lines
1 KiB
HTTP
###
|
|
GET http://127.0.0.1:9876/sanctum/csrf-cookie
|
|
Accept: application/json
|
|
|
|
###
|
|
POST http://127.0.0.1:9876/login
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Accept: application/json
|
|
|
|
username=admin &
|
|
password=admin
|
|
|
|
###
|
|
POST http://127.0.0.1:9876/register
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Accept: application/json
|
|
|
|
username = testestest &
|
|
password = testestest &
|
|
password_confirmation = testestest &
|
|
email = testestest@testestest.testestest &
|
|
type = dj
|
|
|
|
###
|
|
POST http://127.0.0.1:9876/login
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Accept: application/json
|
|
|
|
username = clair &
|
|
password = password
|
|
|
|
###
|
|
POST http://127.0.0.1:9876/registerToken
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Accept: application/json
|
|
|
|
username=admin &
|
|
password=admin &
|
|
token_name=test
|
|
|
|
###
|
|
# Request a token with /registerToken, manually add the token in Authorization
|
|
GET http://127.0.0.1:9876/api/apiTest
|
|
Content-Type: application/x-www-form-urlencoded
|
|
Accept: application/json
|
|
Authorization: Bearer V0KUFqGP746fqKxod2UTA2Zq48v6oe9rO2wU2hsrafbdedcf
|