Re: FreshPorts API

2017-09-21 Thread Dan Langille
> On Sep 21, 2017, at 4:10 PM, Torsten Zuehlsdorff 
>  wrote:
> 
> 
> 
> On 21.09.2017 14:31, Dan Langille wrote:
>> FreshPorts contains more than just ports. It contains all commits to the 
>> FreeBSD repository.
>> This is all stored in a database. It can be queried. We just need an API.
>> The goal is to start gradually, based on the ideas started at 
>> https://duck.co/ideas/idea/936/grab-bsd-port-summary-from-freshports 
>> 
>> and later at https://github.com/FreshPorts/freshports/issues/4 
>> 
>> I did start using https://github.com/marcj/php-rest-service 
>>  (I didn't get to the
>> point of having methods invoked), I'm looking for others to help get this 
>> started.
>> The goal is a PHP-based API. Why? Existing PHP code for database access.
> 
> But what problem to you want to solve with it?
> 
> I regularly dump the ports-tree into a database for some research or hacking. 
> But beside this very specific cases i never needed it. So what do you want to 
> accomplish?

This API is for third party use. We can try to anticipate their use cases by 
providing a general API, but in general, it's unknown.

In the duck.co  link above, it shows one such use case: 
search.  It allows a third party to search FreshPorts. to find results.

-- 
Dan Langille - BSDCan / PGCon
d...@langille.org



___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: FreshPorts API

2017-09-21 Thread Torsten Zuehlsdorff



On 21.09.2017 14:31, Dan Langille wrote:

FreshPorts contains more than just ports. It contains all commits to the 
FreeBSD repository.

This is all stored in a database. It can be queried. We just need an API.

The goal is to start gradually, based on the ideas started at 
https://duck.co/ideas/idea/936/grab-bsd-port-summary-from-freshports 

and later at https://github.com/FreshPorts/freshports/issues/4 


I did start using https://github.com/marcj/php-rest-service 
 (I didn't get to the
point of having methods invoked), I'm looking for others to help get this 
started.

The goal is a PHP-based API. Why? Existing PHP code for database access.


But what problem to you want to solve with it?

I regularly dump the ports-tree into a database for some research or 
hacking. But beside this very specific cases i never needed it. So what 
do you want to accomplish?


Greetings,
Torsten
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


FreshPorts API

2017-09-21 Thread Dan Langille
FreshPorts contains more than just ports. It contains all commits to the 
FreeBSD repository.

This is all stored in a database. It can be queried. We just need an API.

The goal is to start gradually, based on the ideas started at 
https://duck.co/ideas/idea/936/grab-bsd-port-summary-from-freshports 

and later at https://github.com/FreshPorts/freshports/issues/4 


I did start using https://github.com/marcj/php-rest-service 
 (I didn't get to the 
point of having methods invoked), I'm looking for others to help get this 
started.

The goal is a PHP-based API. Why? Existing PHP code for database access.

-- 
Dan Langille - BSDCan / PGCon
d...@langille.org


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"