Is there a way to ask for a set of project names under a given Team/User? I don't like maintaining lists like this one: #( 'BitmapCharacterSet' 'CollectionArithmetic' 'Coral' 'EventRecorder' 'FFICompatibility' 'FileSystemLegacy' 'Flotr' 'Gettext' 'ImageWorker' 'JSON' 'LDAP' 'LEDMorph' 'MorphExamplesAndDemos' 'NBOpenGL' 'OPAX' 'OrderPreservingDictionary' 'Pastell' 'Phexample' 'PlotMorph' 'PostgresV2' 'Postmark' 'ProfStef' 'RFB' 'ROE' 'SCouchDBViewServer' 'SMark' 'Smacc' 'Sound' 'Soup' 'Spotlight2' 'Tanker' 'XMLParser' 'XMLSupport' 'XMLWriter' 'XPath' 'readline') do: [ :projectName | MCRepositoryGroup default addRepository: ( MCSmalltalkhubRepository owner: 'PharoExtras' project: projectName) ]. Phil
Hi! You can do: GET http://smalltalkhub.com/hub/projects/{user,team} Cheers, Nico phil@highoctane.be writes:
Is there a way to ask for a set of project names under a given Team/User?
I don't like maintaining lists like this one:
#( 'BitmapCharacterSet' 'CollectionArithmetic' 'Coral' 'EventRecorder' 'FFICompatibility' 'FileSystemLegacy' 'Flotr' 'Gettext' 'ImageWorker' 'JSON' 'LDAP' 'LEDMorph' 'MorphExamplesAndDemos' 'NBOpenGL' 'OPAX' 'OrderPreservingDictionary' 'Pastell' 'Phexample' 'PlotMorph' 'PostgresV2' 'Postmark' 'ProfStef' 'RFB' 'ROE' 'SCouchDBViewServer' 'SMark' 'Smacc' 'Sound' 'Soup' 'Spotlight2' 'Tanker' 'XMLParser' 'XMLSupport' 'XMLWriter' 'XPath' 'readline') do: [ :projectName | MCRepositoryGroup default addRepository: ( MCSmalltalkhubRepository owner: 'PharoExtras' project: projectName) ].
Phil
-- Nicolas Petton http://nicolas-petton.fr
Ah, nice! Thx On Fri, Mar 28, 2014 at 10:44 AM, Nicolas Petton <petton.nicolas@gmail.com>wrote:
Hi!
You can do:
GET http://smalltalkhub.com/hub/projects/{user,team}
Cheers, Nico
phil@highoctane.be writes:
Is there a way to ask for a set of project names under a given Team/User?
I don't like maintaining lists like this one:
#( 'BitmapCharacterSet' 'CollectionArithmetic' 'Coral' 'EventRecorder' 'FFICompatibility' 'FileSystemLegacy' 'Flotr' 'Gettext' 'ImageWorker' 'JSON' 'LDAP' 'LEDMorph' 'MorphExamplesAndDemos' 'NBOpenGL' 'OPAX' 'OrderPreservingDictionary' 'Pastell' 'Phexample' 'PlotMorph' 'PostgresV2' 'Postmark' 'ProfStef' 'RFB' 'ROE' 'SCouchDBViewServer' 'SMark' 'Smacc' 'Sound' 'Soup' 'Spotlight2' 'Tanker' 'XMLParser' 'XMLSupport' 'XMLWriter' 'XPath' 'readline') do: [ :projectName | MCRepositoryGroup default addRepository: ( MCSmalltalkhubRepository owner: 'PharoExtras' project: projectName) ].
Phil
-- Nicolas Petton http://nicolas-petton.fr
Would it be useful if SmalltalkHub provided an API (I mean, something documented)? Nico phil@highoctane.be writes:
Ah, nice!
Thx
On Fri, Mar 28, 2014 at 10:44 AM, Nicolas Petton <petton.nicolas@gmail.com>wrote:
Hi!
You can do:
GET http://smalltalkhub.com/hub/projects/{user,team}
Cheers, Nico
phil@highoctane.be writes:
Is there a way to ask for a set of project names under a given Team/User?
I don't like maintaining lists like this one:
#( 'BitmapCharacterSet' 'CollectionArithmetic' 'Coral' 'EventRecorder' 'FFICompatibility' 'FileSystemLegacy' 'Flotr' 'Gettext' 'ImageWorker' 'JSON' 'LDAP' 'LEDMorph' 'MorphExamplesAndDemos' 'NBOpenGL' 'OPAX' 'OrderPreservingDictionary' 'Pastell' 'Phexample' 'PlotMorph' 'PostgresV2' 'Postmark' 'ProfStef' 'RFB' 'ROE' 'SCouchDBViewServer' 'SMark' 'Smacc' 'Sound' 'Soup' 'Spotlight2' 'Tanker' 'XMLParser' 'XMLSupport' 'XMLWriter' 'XPath' 'readline') do: [ :projectName | MCRepositoryGroup default addRepository: ( MCSmalltalkhubRepository owner: 'PharoExtras' project: projectName) ].
Phil
-- Nicolas Petton http://nicolas-petton.fr
-- Nicolas Petton http://nicolas-petton.fr
I just wanted to have my projects repos added to my preferences file. Without an API, it requires scraping the UI and writing code. So, yes, an API would be nice (or some helper to help with the repos registration for a given user/team in Monticello). But the REST thing is good enough at this point. With some NeoJSON, it can be quickly accessed. Phil On Fri, Mar 28, 2014 at 11:00 AM, Nicolas Petton <petton.nicolas@gmail.com>wrote:
Would it be useful if SmalltalkHub provided an API (I mean, something documented)?
Nico
phil@highoctane.be writes:
Ah, nice!
Thx
On Fri, Mar 28, 2014 at 10:44 AM, Nicolas Petton <petton.nicolas@gmail.com>wrote:
Hi!
You can do:
GET http://smalltalkhub.com/hub/projects/{user,team}
Cheers, Nico
phil@highoctane.be writes:
Is there a way to ask for a set of project names under a given Team/User?
I don't like maintaining lists like this one:
#( 'BitmapCharacterSet' 'CollectionArithmetic' 'Coral' 'EventRecorder' 'FFICompatibility' 'FileSystemLegacy' 'Flotr' 'Gettext' 'ImageWorker' 'JSON' 'LDAP' 'LEDMorph' 'MorphExamplesAndDemos' 'NBOpenGL' 'OPAX' 'OrderPreservingDictionary' 'Pastell' 'Phexample' 'PlotMorph' 'PostgresV2' 'Postmark' 'ProfStef' 'RFB' 'ROE' 'SCouchDBViewServer' 'SMark' 'Smacc' 'Sound' 'Soup' 'Spotlight2' 'Tanker' 'XMLParser' 'XMLSupport' 'XMLWriter' 'XPath' 'readline') do: [ :projectName | MCRepositoryGroup default addRepository: ( MCSmalltalkhubRepository owner: 'PharoExtras' project: projectName) ].
Phil
-- Nicolas Petton http://nicolas-petton.fr
-- Nicolas Petton http://nicolas-petton.fr
philippeback wrote
I just wanted to have my projects repos added to my preferences file. ... So, yes, an API would be nice
I had the same use case, so I implemented just that one to get the ball rolling. I just wrote my own custom project class but maybe it would be better to reuse the one from sthub itself? Gofer it smalltalkhubUser: 'SeanDeNigris' project: 'SeansPlayground'; configurationOf: 'SmalltalkHubAPI'; loadStable. projects := #SthAPI asClass new projectsFor: 'your sth user/team name here'. projects do: [ :e | Transcript show: 'Adding repo for ', e name, ' to default group'; cr. e addMcRepository ]. ----- Cheers, Sean -- View this message in context: http://forum.world.st/Smalltalkhub-API-tp4751207p4754581.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (3)
-
Nicolas Petton -
phil@highoctane.be -
Sean P. DeNigris