{"id":17994748,"url":"https://github.com/j14159/snore","last_synced_at":"2025-04-04T05:24:34.970Z","repository":{"id":13984720,"uuid":"16685656","full_name":"j14159/snore","owner":"j14159","description":"Experiment in REST with functions instead of piles of braces and implicits.","archived":false,"fork":false,"pushed_at":"2014-02-10T05:55:04.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T16:43:04.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j14159.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-10T05:42:36.000Z","updated_at":"2014-02-10T05:55:04.000Z","dependencies_parsed_at":"2022-07-31T17:38:53.914Z","dependency_job_id":null,"html_url":"https://github.com/j14159/snore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j14159%2Fsnore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j14159%2Fsnore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j14159%2Fsnore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j14159%2Fsnore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j14159","download_url":"https://codeload.github.com/j14159/snore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247125150,"owners_count":20887637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T20:16:18.060Z","updated_at":"2025-04-04T05:24:34.949Z","avatar_url":"https://github.com/j14159.png","language":"Scala","readme":"Snore\n=====\n\n#What\nAfter spending some time with [Cowboy](https://github.com/extend/cowboy) I find myself wishing I had a similar approach for REST in Scala.  Rather than a pile of nested things, implicits that conflict with other stuff, route files, etc, I wanted:\n\n* a set of functions that are called to define a resource in a specific order\n* asynchronous handling of requests by default (but let the handling functions be defined synchronously if so desired)\n* not _another_ JSON library (I like json4s, you probably like something else.  Good!  Use that instead!)\n\n#Warning\n\nThis is a *horribly incomplete experiment*.  This is just here for a few people to look at and for me to figure out if I care enough to continue or abandon this for sanity in Erlang.\n\n#How\nLook at [the example file](https://github.com/j14159/snore/blob/master/src/main/scala/com/noisycode/snore/Example.scala) located in, of course, a completely inappropriate area.\n\n#Warning (again)\nThis is the result of screwing around for a few hours on a weekend.  Don't expect it to do anything awesome.\n\n#Possibly Next\nImmediate stuff that sucks that I'll get to unless despair drives me back to Erlang:\n\n* no distinction between PUT/POST.  I'll likely split these into create/modify sections or something like that.  I'll see how I feel after putting some more time into [the spec](http://www.w3.org/Protocols/rfc2616/rfc2616.html).\n* proper delete callbacks.  Using DELETE just throws an exception right now.\n* query parameters.  Stupid easy to do, just haven't yet.\n* lazy request body fetching\n* implement at least a significant chunk of what Cowboy has in its [REST handler awesomeness](https://github.com/extend/cowboy/blob/master/guide/rest_handlers.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj14159%2Fsnore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj14159%2Fsnore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj14159%2Fsnore/lists"}