Skip to content

Instantly share code, notes, and snippets.

@satabin
Created August 7, 2013 12:29
Show Gist options
  • Select an option

  • Save satabin/6173631 to your computer and use it in GitHub Desktop.

Select an option

Save satabin/6173631 to your computer and use it in GitHub Desktop.
/*
* This file is part of the \BlueLaTeX project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package gnieh.blue
package compile
import http.RestApi
/** The compilation feature Rest API that offers the services to compile
* papers
*
* @author Lucas Satabin
*/
class CompilationApi extends RestApi {
POST {
case path"$paperId/compile" =>
???
case path"$paperId/compile" ? query"a=${int(i)}&b=$test" =>
???
case req @ path"$paperId/q" =>
// get the request data object bound to req
???
case req =>
val path = req.uriPath
val query = req.query
val accepts = req.header("Accepts")
???
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment