Giter Site home page Giter Site logo

gaecouch's Introduction

Installation

configure app.yaml copied from app.yaml.example, and deploy the application on your GAE environment.

Not all APIs are completed.

A few APIs are currently supported (Database and Document APIs). If an API is not implemented yet, the response will be as follows.

$ curl -X GET http://gaecouch.appspot.com/_stats
$ {"reason": "please contribute implementation.", "error": "not_implemented"}

Welcome to fork and contribute if you are interested in!

Example

$ curl -X GET http://gaecouch.appspot.com/
{"not_found": "Welcome", "version": "0.11.0"}

$ curl -X GET http://gaecouch.appspot.com/a
{"reason": "not_found", "error": "no_db_file"}

$ curl -X GET http://gaecouch.appspot.com/a
{"update_seq": 0, "purge_seq": 0, "doc_count": 0, "compact_running": false, "db_name": "a", "disk_format_version": 5, "instance_start_time": 1274547941.0, "doc_del_count": 0}

$ curl -X PUT --data '' http://gaecouch.appspot.com/a
{"ok": true}

$ curl -X POST --data '{"foo": "bar"}' http://gaecouch.appspot.com/a
{"rev": "1-94232c5b8fc9272f6f73a1e36eb68fcf", "ok": true, "id": "55fb77f2ea3f480d966055398a7d282a"}

$ curl -X PUT --data '{"_rev": "1-94232c5b8fc9272f6f73a1e36eb68fcf", "foo": "bar", "hoge": "fuga"}' http://gaecouch.appspot.com/a/55fb77f2ea3f480d966055398a7d282a
{"rev": "2-a99335d508426d4e600b45dd61d2d017", "ok": true, "id": "55fb77f2ea3f480d966055398a7d282a"}

$ curl -X GET http://gaecouch.appspot.com/a/55fb77f2ea3f480d966055398a7d282a
{"_rev": "2-a99335d508426d4e600b45dd61d2d017", "_id": "55fb77f2ea3f480d966055398a7d282a", "foo": "bar", "hoge": "fuga"}

$ curl -X DELETE http://gaecouch.appspot.com/a/55fb77f2ea3f480d966055398a7d282a?rev=2-a99335d508426d4e600b45dd61d2d017
{"rev": "3-a99335d508426d4e600b45dd61d2d017", "ok": true, "id": "55fb77f2ea3f480d966055398a7d282a"}

$ curl -X GET http://gaecouch.appspot.com/a/55fb77f2ea3f480d966055398a7d282a
{"error": "not_found", "reason": "deleted"}

$ curl -X DELETE http://gaecouch.appspot.com/a
{"ok": true}

$ curl -X GET http://gaecouch.appspot.com/a
{"reason": "not_found", "error": "missing"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.