TeamNewPipe / NewPipeExtractor

NewPipe's core library for extracting data from streaming sites
GNU General Public License v3.0
1.38k stars 418 forks source link

NewPipe REST APIs #172

Open yausername opened 5 years ago

yausername commented 5 years ago

Hi, I have tried to create REST APIs for NewPipeExtractor. This could be used for porting NewPipe to other platforms as discussed here. The current implementation is just returning the POJOs as json.

It would be interesting to get your feedback. @theScrabi @TobiGr @TheAssassin @mauriciocolli @PrestonN @omarroth

Code - https://github.com/yausername/NewPipeREST Swagger UI (Documentation) - https://app.swaggerhub.com/apis-docs/yayausername/new-pipe_rest/1.0.0 Test Server - https://newpipe-rest.herokuapp.com/api/v1 OpenAPI spec - https://github.com/yausername/NewPipeREST/blob/master/docs/openapi.yaml

TheAssassin commented 5 years ago

Interesting approach. That means you still need some extra interface, but at least NPE can be re-used.

yausername commented 5 years ago

Interesting approach. That means you still need some extra interface, but at least NPE can be re-used.

Yes, I am thinking of creating an npm module that would wrap this server. It could then be used in electron based apps.

PrestonN commented 5 years ago

Very interesting. I'll try to find some time this week to dig into this and poke around. At a glance everything seems nice and well organized. I'll come back and leave my feedback once I've had a chance to play around with everything.

theScrabi commented 5 years ago

You are going to make @omarroth concurrence. xD