Hi Peter and Kate,

 

Back online.

 

There is a JSON format both in the github set of license data files (see  
<https://github.com/spdx/license-list-data/blob/master/README.md> 
https://github.com/spdx/license-list-data/blob/master/README.md) and online.

 

Documentation for the online JSON files is conspicuously absent from the 
documentation – something I’ll have to  fix.

 

For web access, a JSON format of the “table of contents” can be found at  
<https://spdx.org/licenses/licenses.json> 
https://spdx.org/licenses/licenses.json

 

Detailed license information for any given license can be found at  
<https://spdx.org/licenses/%5blicenseid%5d.json> 
https://spdx.org/licenses/[licenseid].json where [licenseid] is the SPDX listed 
license ID (e.g.  <https://spdx.org/licenses/MIT.json> 
https://spdx.org/licenses/MIT.json).

 

I added formally documenting this to my todo list.

 

Gary

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Kate Stewart
Sent: Friday, March 3, 2017 12:00 PM
To: Peter Monks
Cc: [email protected]; Maurizio Pillitu
Subject: Re: [spdx-tech] Public SPDX API?

 

Hiya Peter,

 

    This is indeed the right place to ask these sorts of questions.   :-)

 

   There's a report that Gary wrote on accessing the license list 
programmatically

that can be found: 
https://spdx.org/sites/cpstandard/files/pages/files/accessing_spdx_licenses_v-2.0.pdf

 

Can you take a look through it and see if addresses what you're looking for and 
let us know.

 

If you see ways of improving the access,  its definitely worth discussing on 
this list when

Gary's back from his vacation (should be next week). 

 

Cheers,

Kate

 

On Fri, Mar 3, 2017 at 1:35 PM, Peter Monks <[email protected]> wrote:

G’day everyone, and apologies if this is the wrong forum for this kind of 
conversation.

 

An interesting question 
<https://github.com/captainsafia/legit/issues/14#issuecomment-284042329>  came 
up on some SPDX-related work a colleague and I have done, and I wondered if 
perhaps there was a general topic here.  The basic question was:

 

Does SPDX have a similar JSON API that can be used to fetch licenses?        
[“similar” here refers to the GitHub License API 
<https://developer.github.com/v3/licenses/> ]

 

Is there a plan for such a thing?  I realise this can be emulated quite well 
via HTTP requests to the SPDX license-list GitHub repository 
<https://github.com/spdx/license-list>  (and in fact that’s exactly what we’re 
doing), but a more traditional public API might help encourage adoption.  wdyt?


Cheers,

Peter Monks

Symphony Software Foundation


_______________________________________________
Spdx-tech mailing list
[email protected]
https://lists.spdx.org/mailman/listinfo/spdx-tech

 

_______________________________________________
Spdx-tech mailing list
[email protected]
https://lists.spdx.org/mailman/listinfo/spdx-tech

Reply via email to