fix(http): misc

This commit is contained in:
Michael 2025-06-25 17:07:03 +02:00
parent 095e6c38fc
commit 38f4caf072
7 changed files with 54 additions and 52 deletions

View file

@ -1,6 +1,3 @@
###
@baseUrl = http://127.0.0.1:9876
### ###
POST {{baseUrl}}/login POST {{baseUrl}}/login
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
@ -20,10 +17,9 @@ Content-Disposition: form-data; name="file"; filename="test_sintonia.mp3"
--WebAppBoundary-- --WebAppBoundary--
### ###
GET http://127.0.0.1:9876/file? GET {{baseUrl}}/file?
page=1 & page=1 &
per_page=10 & per_page=10
artist_name=Cattle

View file

@ -1,5 +1,3 @@
@baseUrl = http://127.0.0.1:9876
### GET request to example server ### GET request to example server
GET {{baseUrl}}/showInstances?withShow=true&starts=2025-03 GET {{baseUrl}}/showInstances?withShow=true&starts=2025-03

View file

@ -1,6 +1,4 @@
@baseUrl = http://localhost:9876 GET {{baseUrl}}/testSchedule
GET http://127.0.0.1:9876/testSchedule
Accept: application/json Accept: application/json
### ###
@ -8,37 +6,39 @@ POST {{baseUrl}}/show
Content-Type: application/json Content-Type: application/json
{ {
"show": { "id": null,
"name": "test2", "name": "Esempio",
"url": "test", "url": "",
"genre": "test", "genre": "",
"description": "test", "description": "",
"color": "test", "background_color": "",
"background_color": "test", "live_stream_using_airtime_auth": false,
"live_stream_using_airtime_auth": "false", "live_stream_user": "",
"live_stream_using_custom_auth": "false", "live_stream_pass": "",
"linked": "false", "image_path": "",
"is_linkable": "false", "has_autoplaylist": false,
"has_autoplaylist": "true", "autoplaylist_id": null,
"autoplaylist_id": 1 "autoplaylist_repeat": false,
}, "show_djs": null,
"showDaysRules": { "show_days": {
"first_show": "2025-03-10", "first_show": "2025-06-12T14:25:50.503Z",
"start_time": "15:10:00", "last_show": null,
"timezone": "UTC", "start_time": "08:00",
"repeat_type": "noRepeat", "timezone": "",
"duration": "02:00:00", "duration": "01:00",
"day": [5], "day": [
"record": 0 4
}, ],
"showDjs": { "repeat_type": "noRepeat",
"subjs_id": 1 "next_pop_date": "",
"show_id": null,
"record": 0
}
} }
}
### ###
GET {{baseUrl}}/show/179?withDjs=true GET {{baseUrl}}/show/1?withDjs=true
Accept: application/json Accept: application/json
{ {

View file

@ -0,0 +1,8 @@
{
"development": {
"baseUrl": "http://localhost:9876"
},
"production": {
"baseUrl": "https://sintonia.congegni.net"
}
}

View file

@ -1,6 +1,6 @@
#TEST MUSICBRAINZ APP ENDPOINT #TEST MUSICBRAINZ APP ENDPOINT
POST http://127.0.0.1:8000/musicbrainz/get_track_metadata POST {{baseUrl}}/musicbrainz/get_track_metadata
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
artist = Ella Fitzgerald & artist = Ella Fitzgerald &

View file

@ -1,4 +1,4 @@
GET http://127.0.0.1:9876/track_type? GET {{baseUrl}}/track_type?
parents=false parents=false
### ###

View file

@ -1,9 +1,9 @@
### ###
GET http://127.0.0.1:9876/sanctum/csrf-cookie GET {{baseUrl}}/sanctum/csrf-cookie
Accept: application/json Accept: application/json
### ###
POST http://127.0.0.1:9876/login POST {{baseUrl}}/login
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
Accept: application/json Accept: application/json
@ -11,18 +11,18 @@ username=admin &
password=admin password=admin
### ###
POST http://127.0.0.1:9876/register POST {{baseUrl}}/register
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
Accept: application/json Accept: application/json
username = editoreditor & username = dj &
password = editoreditor & password = dsadadsadasdas &
password_confirmation = editoreditor & password_confirmation = dsadadsadasdas &
email = editor@djtest.djtest & email = dj@dj.dj &
type = editor type = dj
### ###
POST http://127.0.0.1:9876/login POST {{baseUrl}}/login
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
Accept: application/json Accept: application/json
@ -30,7 +30,7 @@ username = clair &
password = password password = password
### ###
POST http://127.0.0.1:9876/registerToken POST {{baseUrl}}/registerToken
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
Accept: application/json Accept: application/json
@ -40,12 +40,12 @@ token_name=test
### ###
# Request a token with /registerToken, manually add the token in Authorization # Request a token with /registerToken, manually add the token in Authorization
GET http://127.0.0.1:9876/api/apiTest GET {{baseUrl}}/api/apiTest
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
Accept: application/json Accept: application/json
Authorization: Bearer V0KUFqGP746fqKxod2UTA2Zq48v6oe9rO2wU2hsrafbdedcf Authorization: Bearer V0KUFqGP746fqKxod2UTA2Zq48v6oe9rO2wU2hsrafbdedcf
### ###
GET http://127.0.0.1:9876/user?withShow=true&role=dj GET {{baseUrl}}/user?withShow=true&role=dj
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
Accept: application/json Accept: application/json