Question thread #57

15 October 2017 11:24 pm
pauamma: Cartooney crab holding drink (Default)
[personal profile] pauamma posting in [site community profile] dw_dev
It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
Tags:

API wishlist?

10 October 2017 10:29 pm
momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)
[personal profile] momijizukamori posting in [site community profile] dw_dev
So my workplace gives us a chance twice a year to work on anything we want for a few days, work-related or otherwise, and I thought I'd use some of my time to actually get the new API into a state where we can make it live. With that in mind! What endpoints would you like to see implemented? We're making this Swagger/OpenAPI-compliant, so everything takes JSON as arguments and return JSON formatted data. Stuff already on the list to do or partially done:

/api/v1/users/{username} - GET, shows info about the user (specific info TBD; subset of profile, probably?)
/api/v1/users/{username}/icons - GET, lists icons
/api/v1/users/{username}/icons/{iconid} - GET, returns icon data
/api/v1/users/{username}/journals - GET, returns list of journals with write access.
-- for now, returns only user's primary journal
/api/v1/journals/{username}/accesslists - GET, list of access lists for journal
/api/v1/journals/{username}/tags - GET, list of tags for journal
/api/v1/journals/{username}/xpostaccounts - GET list of xpost accounts
/api/v1/moods - GET list of moods
/api/v1/commentsettings - GET list of allowed comment settings
/api/v1/journals/{username}/entries - POST new entry, GET list of recent entries
/api/v1/journals/{username}/entries/{id} - POST edit entry, GET specific entry
/api/v1/journals/{username}/files - POST new file
/api/v1/spec - GET, returns a description of the API

(Mark and D, as usual, get the final say - some stuff people want may end up being security/privacy risks in non-obvious ways)
Tags:

Cross-stitch Tuesday

10 October 2017 10:03 pm
glinda: dw sheep dreams of crochet (crochet sheep)
[personal profile] glinda posting in [community profile] cross_stitch
I knew I'd missed a couple of weeks of checking in but I hadn't realised it was nearly a month. Anyway things are starting to take shape! I'm starting to be able to see where other parts of the design will fit in. The places where the leaves will slot in for example. And I finally, finally got to actually put some purple in - when I picked this design all those years ago, I was under the impression there'd be a lot more purple involved than there actually is...

Progress

I am actually a little further on with the design than this picture shows, but not by very much. I started in on some pink, but I haven't got very far yet. Hopefully next week's post will have some actually fairy in it!

Two pieces...

10 October 2017 08:41 am
artsyhonker: a girl with glasses and purple shoulder-length hair (Default)
[personal profile] artsyhonker posting in [community profile] choralmusic
I woke up this morning before 6am, somewhat inexplicably, with "There is a River in Judea" in my head.

I don't know if that's a thing in the UK, but growing up in North America it was pretty much inescapable; and the plethora of recordings online suggests that it still is.

Listening to it afresh, I was struck by the directness. There's an effficiency to it, almost, and it isn't afraid to repeat a good tune.

It wouldn't do, though, to have it stuck in my head all day. So I'm listening to Bainton's setting of "And I Saw A New Heaven" which is one of my all-time favourite pieces.