fix(http): misc
This commit is contained in:
parent
095e6c38fc
commit
38f4caf072
7 changed files with 54 additions and 52 deletions
|
@ -1,6 +1,3 @@
|
|||
###
|
||||
@baseUrl = http://127.0.0.1:9876
|
||||
|
||||
###
|
||||
POST {{baseUrl}}/login
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
@ -20,10 +17,9 @@ Content-Disposition: form-data; name="file"; filename="test_sintonia.mp3"
|
|||
--WebAppBoundary--
|
||||
|
||||
###
|
||||
GET http://127.0.0.1:9876/file?
|
||||
GET {{baseUrl}}/file?
|
||||
page=1 &
|
||||
per_page=10 &
|
||||
artist_name=Cattle
|
||||
per_page=10
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
@baseUrl = http://127.0.0.1:9876
|
||||
|
||||
### GET request to example server
|
||||
|
||||
GET {{baseUrl}}/showInstances?withShow=true&starts=2025-03
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
@baseUrl = http://localhost:9876
|
||||
|
||||
GET http://127.0.0.1:9876/testSchedule
|
||||
GET {{baseUrl}}/testSchedule
|
||||
Accept: application/json
|
||||
|
||||
###
|
||||
|
@ -8,37 +6,39 @@ POST {{baseUrl}}/show
|
|||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"show": {
|
||||
"name": "test2",
|
||||
"url": "test",
|
||||
"genre": "test",
|
||||
"description": "test",
|
||||
"color": "test",
|
||||
"background_color": "test",
|
||||
"live_stream_using_airtime_auth": "false",
|
||||
"live_stream_using_custom_auth": "false",
|
||||
"linked": "false",
|
||||
"is_linkable": "false",
|
||||
"has_autoplaylist": "true",
|
||||
"autoplaylist_id": 1
|
||||
},
|
||||
"showDaysRules": {
|
||||
"first_show": "2025-03-10",
|
||||
"start_time": "15:10:00",
|
||||
"timezone": "UTC",
|
||||
"repeat_type": "noRepeat",
|
||||
"duration": "02:00:00",
|
||||
"day": [5],
|
||||
"record": 0
|
||||
},
|
||||
"showDjs": {
|
||||
"subjs_id": 1
|
||||
"id": null,
|
||||
"name": "Esempio",
|
||||
"url": "",
|
||||
"genre": "",
|
||||
"description": "",
|
||||
"background_color": "",
|
||||
"live_stream_using_airtime_auth": false,
|
||||
"live_stream_user": "",
|
||||
"live_stream_pass": "",
|
||||
"image_path": "",
|
||||
"has_autoplaylist": false,
|
||||
"autoplaylist_id": null,
|
||||
"autoplaylist_repeat": false,
|
||||
"show_djs": null,
|
||||
"show_days": {
|
||||
"first_show": "2025-06-12T14:25:50.503Z",
|
||||
"last_show": null,
|
||||
"start_time": "08:00",
|
||||
"timezone": "",
|
||||
"duration": "01:00",
|
||||
"day": [
|
||||
4
|
||||
],
|
||||
"repeat_type": "noRepeat",
|
||||
"next_pop_date": "",
|
||||
"show_id": null,
|
||||
"record": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
GET {{baseUrl}}/show/179?withDjs=true
|
||||
GET {{baseUrl}}/show/1?withDjs=true
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
|
|
8
_requests/http-client.env.json
Normal file
8
_requests/http-client.env.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"development": {
|
||||
"baseUrl": "http://localhost:9876"
|
||||
},
|
||||
"production": {
|
||||
"baseUrl": "https://sintonia.congegni.net"
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
#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
|
||||
|
||||
artist = Ella Fitzgerald &
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
GET http://127.0.0.1:9876/track_type?
|
||||
GET {{baseUrl}}/track_type?
|
||||
parents=false
|
||||
|
||||
###
|
|
@ -1,9 +1,9 @@
|
|||
###
|
||||
GET http://127.0.0.1:9876/sanctum/csrf-cookie
|
||||
GET {{baseUrl}}/sanctum/csrf-cookie
|
||||
Accept: application/json
|
||||
|
||||
###
|
||||
POST http://127.0.0.1:9876/login
|
||||
POST {{baseUrl}}/login
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Accept: application/json
|
||||
|
||||
|
@ -11,18 +11,18 @@ username=admin &
|
|||
password=admin
|
||||
|
||||
###
|
||||
POST http://127.0.0.1:9876/register
|
||||
POST {{baseUrl}}/register
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Accept: application/json
|
||||
|
||||
username = editoreditor &
|
||||
password = editoreditor &
|
||||
password_confirmation = editoreditor &
|
||||
email = editor@djtest.djtest &
|
||||
type = editor
|
||||
username = dj &
|
||||
password = dsadadsadasdas &
|
||||
password_confirmation = dsadadsadasdas &
|
||||
email = dj@dj.dj &
|
||||
type = dj
|
||||
|
||||
###
|
||||
POST http://127.0.0.1:9876/login
|
||||
POST {{baseUrl}}/login
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Accept: application/json
|
||||
|
||||
|
@ -30,7 +30,7 @@ username = clair &
|
|||
password = password
|
||||
|
||||
###
|
||||
POST http://127.0.0.1:9876/registerToken
|
||||
POST {{baseUrl}}/registerToken
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Accept: application/json
|
||||
|
||||
|
@ -40,12 +40,12 @@ token_name=test
|
|||
|
||||
###
|
||||
# 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
|
||||
Accept: application/json
|
||||
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
|
||||
Accept: application/json
|
Loading…
Add table
Add a link
Reference in a new issue