zanata / fake-zanata-server

A simple REST server that presents a REST API similar to Zanata Server
MIT License
1 stars 2 forks source link

Remove moby-dick project, update rest url #12

Closed alex-sl-eng closed 10 years ago

alex-sl-eng commented 10 years ago
davidmason commented 10 years ago

Please keep all the implementations for "Real endpoints", and only change the path for "Fake endpoints". To make another endpoint use the same file, use endpoint(<endpoint-path>, null, getJSON(<original-endpoint-path>));. If you are making several of them, you might as well add this function to make them:

/**
 * Create an endpoint at aliasPath using the data from originalPath.
 */
function alias(aliasPath, originalPath) {
  return endpoint(aliasPath, null, getJSON(originalPath));
}
davidmason commented 10 years ago

Still a few of the real endpoints that are being removed by this PR.