Re: [Mailman-Developers] REST API first pass at Swagger spec

2015-01-11 Thread Barry Warsaw
On Jan 11, 2015, at 08:51 AM, Andrew Stuart wrote: >Attached is a first pass at a Swagger spec for the REST API. > >You can find out about Swagger at http://swagger.io > >The Swagger spec that I am working on is attached to this message or can be >found here: http://www.mailripper.com/api-docs.jso

Re: [Mailman-Developers] REST API returns are plain text for errors, JSON or nothing for successful

2015-01-11 Thread Barry Warsaw
On Jan 11, 2015, at 06:23 AM, Andrew Stuart wrote: >Happy to do so if you like. Would you mind pointing me in the direction of >some instructions for filing bugs please? > >FWIW I’d probably favor a REST API that is behaving improperly by returning >plain text error responses (i.e. the current si

Re: [Mailman-Developers] REST API returns are plain text for errors, JSON or nothing for successful

2015-01-11 Thread Andrew Stuart
Yes I’d favor leave as is, and at some stage in future convert the error messages to JSON. On 12 Jan 2015, at 12:22 pm, Barry Warsaw wrote: On Jan 11, 2015, at 06:23 AM, Andrew Stuart wrote: > Happy to do so if you like. Would you mind pointing me in the direction of > some instructions for

Re: [Mailman-Developers] REST API first pass at Swagger spec

2015-01-11 Thread Stephen J. Turnbull
Barry Warsaw writes: > My big question is how to make sure that the swagger spec doesn't > get out of date to the implementation. Doesn't Andrew's use case answer that? I mean, if the Swagger spec is out of date, the tests based on it should fail. If the tests don't fail, they're incomplete a

Re: [Mailman-Developers] REST API first pass at Swagger spec

2015-01-11 Thread Andrew Stuart
With Swagger you can either: 1: integrate the spec into the API source code or 2: have one single standalone JSON file that contains the whole specification (api-docs.json in this case) I’m not a fan of integrating the Swagger specification into the code - seems to make for a VERY large amount

Re: [Mailman-Developers] REST API first pass at Swagger spec

2015-01-11 Thread Andrew Stuart
" as soon as Andrew loses interest in keeping it up to date.” ;-) I was never interested in keeping it up to date in the first place but I can’t stand doing development without API documentation, a necessary first step to coding to the API. I do like your idea about changes to the API not being

[Mailman-Developers] Fwd: Your confirmation is required to leave the Mailman-Developers mailing list

2015-01-11 Thread Andrew Stuart
errr…. is this someone saying they would prefer I wasn’t on this list? I’d rather hear directly from someone if you feel that way. Begin forwarded message: From: mailman-developers-confirm+e1a7bed1fbf00db07dc7590dcbdba1e364ecc...@python.org To: andrew.stu...@supercoders.com.au Subject: Your

Re: [Mailman-Developers] Fwd: Your confirmation is required to leave the Mailman-Developers mailing list

2015-01-11 Thread Mark Sapiro
On 01/11/2015 06:27 PM, Andrew Stuart wrote: > errr…. is this someone saying they would prefer I wasn’t on this list? I’d > rather hear directly from someone if you feel that way. Unlikely it's that. More likely, its because you've replied to posts without removing the msg_footer from the quoted