mustafaboleken Posted August 22, 2022 Share Posted August 22, 2022 Hi Guys, There is a simple way of importing all of the rest methods from Swagger to Postman Here is a step-by-step guide. Go to https://antmedia.io/rest/ and select the Ant Media Server version you are using on the top right-hand corner. Copy the URL of the swagger.json file. Open Postman and click the import button. Go to the link section and paste the URL of the swagger.json file copied before. Click on the Ant Media Server REST API Reference collection and go to the Variables section. Change baseUrl with your domain name. Postman is ready to use 🙂 Note: Current value should be like https://domain:5443/Application_name/rest 3 1 Link to comment Share on other sites More sharing options...
1 mekya Posted August 23, 2022 Share Posted August 23, 2022 Thank you @mustafaboleken for quick and easy solution Link to comment Share on other sites More sharing options...
0 Selim Posted August 22, 2022 Share Posted August 22, 2022 Hi @mustafaboleken, Thank you @mustafaboleken. Great job! @Ashraf Bendary as far as I remember you're looking similar solution. I hope, it helps to you. Best Regards, Selim Link to comment Share on other sites More sharing options...
0 Developer Posted February 10 Share Posted February 10 I want to run rest API in postman and I want to start broadcast in web browser... How can I start broadcast API from Ant media Server? I have rest API of post with endpoint broadcast/{broadcastid}/start... But it gives error in authorize.. I am using free account and which resources I need to start existing broadcast... Kindly help... Link to comment Share on other sites More sharing options...
0 Yash Posted February 10 Share Posted February 10 Hi @Developer Let me try to explain. Start broadcast API is used to start the stream source broadcast type like RTSP, IP camera or Playlist. If you have created any stream source then using below postman sample, you can start the stream on the server. curl --location --request POST 'https://domain:5443/App-name/rest/v2/broadcasts/streamId/start' \ --header 'Accept: application/json' You need to replace your domain name, application name & stream Id. Now to call Rest API, please make sure that your IP is whitelisted in the Rest API filter. If you do not have any static IP, you can allow all IPs with 0.0.0.0/0 CIDR block. For more reference about IP filter for Rest API, please check:https://resources.antmedia.io/docs/securing-the-rest-api?highlight=rest#ip-filter-for-the-rest-api If you want to start publishing the live stream from browser using Rest API, it is not doable. You need to publish the stream manually from browser. Please check https://resources.antmedia.io/docs/webrtc-publishing In community edition, only WebRTC publish is available but WebRTC playback is available in Enterprise edition. I hope it is clear. Please let us know if you have any further questions. Link to comment Share on other sites More sharing options...
0 Developer Posted February 10 Share Posted February 10 Thanks @Yash... Please tell me what is Vod in ant media server in details? Link to comment Share on other sites More sharing options...
0 Yash Posted February 10 Share Posted February 10 @Developer Lets continue the discussion on below post that you have created for Rest API topic. 1 Link to comment Share on other sites More sharing options...
0 Yash Posted February 13 Share Posted February 13 @Developer Could you please create the separate thread for your new query. It is not related to this topic so I am deleting it from this post. Link to comment Share on other sites More sharing options...
Question
mustafaboleken
Hi Guys,
There is a simple way of importing all of the rest methods from Swagger to Postman
Here is a step-by-step guide.
Note: Current value should be like https://domain:5443/Application_name/rest
Link to comment
Share on other sites
Top Posters For This Question
3
2
1
1
Popular Days
Feb 10
4
Aug 22
2
Aug 23
1
Feb 13
1
Top Posters For This Question
Yash 3 posts
Developer 2 posts
Selim 1 post
mustafaboleken 1 post
Popular Days
Feb 10 2023
4 posts
Aug 22 2022
2 posts
Aug 23 2022
1 post
Feb 13 2023
1 post
Popular Posts
mustafaboleken
Hi Guys, There is a simple way of importing all of the rest methods from Swagger to Postman Here is a step-by-step guide. Go to https://antmedia.io/rest/ and select the Ant Media Serve
Yash
@Developer Lets continue the discussion on below post that you have created for Rest API topic.
Posted Images
7 answers to this question
Recommended Posts