bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
11.71k stars 1.48k forks source link

API 404 page not found add patch delete #3481

Closed Fred14000 closed 2 months ago

Fred14000 commented 3 months ago

Which version are you using?

v1.8.0

Which operating system are you using?

Describe the issue

API 404 page not found when i make an add patch delete but ok with get...

Describe how to replicate the issue

  1. start the server
  2. publish with ...
  3. read with ...

curl -u user:pass -X DELETE http://127.0.0.1:9997/v3/paths/get/hik01

return 404 page not found

curl -u user:pass http://127.0.0.1:9997/v3/paths/get/hik01 work

Did you attach the server logs?

no

Did you attach a network dump?

no

moenodedev commented 2 months ago

The delete url is /v3/config/paths/delete/{name}

https://github.com/bluenviron/mediamtx/blob/main/apidocs/openapi.yaml#L1246C3-L1259

aler9 commented 2 months ago

Exactly as @moenodedev said.