The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: API Candidate
#1
I've taken a stab at the beginnings of a REST API using Python3 and a tool called FAST API and uvicorn.  I've got it running on the pi zero 2w and configured systemd to start it automatically.  

The approach I took was to try to do what MPC and vol.sh do.  The API is making system calls to run  mpc, but does its own work to emulate what Tim has coded in vol.sh.  I didn't implement everything that MPC offers.  Instead, I went after a subset that I find useful.  Testing has been minimal and I've only made it functional, not bullet proof.  I don't code for a living.  I'm a telecomm/voip engineer in my day job.

I'm also thinking of adding a couple of things from moodeutl.  Below is a link to a PDF of the swagger page generated by FAST API.  Will you please give it a look?  Feedback is appreciated. 

https://drive.google.com/drive/folders/1...sp=sharing

Thanks for your consideration,
Tom Lynn
Reply


Messages In This Thread
API Candidate - by ubergoober - 12-31-2023, 07:04 PM
RE: API Candidate - by Tim Curtis - 12-31-2023, 07:13 PM
RE: API Candidate - by Tim Curtis - 12-31-2023, 07:16 PM
RE: API Candidate - by ubergoober - 12-31-2023, 07:26 PM
RE: API Candidate - by Tim Curtis - 12-31-2023, 08:21 PM
RE: API Candidate - by ubergoober - 12-31-2023, 08:54 PM
RE: API Candidate - by ubergoober - 12-31-2023, 10:46 PM
RE: API Candidate - by Nutul - 01-01-2024, 05:38 PM
RE: API Candidate - by ubergoober - 01-01-2024, 09:05 PM
RE: API Candidate - by Tim Curtis - 01-06-2024, 04:55 PM
RE: API Candidate - by ubergoober - 01-06-2024, 06:11 PM
RE: API Candidate - by Tim Curtis - 01-06-2024, 06:26 PM
RE: API Candidate - by ubergoober - 01-06-2024, 07:53 PM

Forum Jump: