Giter Club home page Giter Club logo

google-keep-api's Introduction

Codacy Badge

Google Keep API

logo Google Keep API with Ruby on Rails

Database Schema

database

API Endpoints

Authentication

Route HTTP Verb Request Body Header Body Description
/users POST {user: {email: "[email protected]", password: "mypass", password_confirmation: "mypass", fullname: "şevo"}} Empty Returns authentication bearer token on header
/users/sign_in POST {user: {email: "[email protected]", password: "mypass"}} Empty Returns authentication bearer token on header
/users/sign_out DELETE Empty Authentication: Bearer Token Returns sign out message

Colors

Route HTTP Verb Request Body Header Body Description
/colors GET Empty Authentication: Bearer Token Returns user's colors
/colors POST {color: {color: "hexcode-or-rgb-or-etc"}} Authentication: Bearer Token Returns created resource or error messages
/colors/:id GET Empty Authentication: Bearer Token Returns resource
/colors/:id PATCH {color: {color: "#fff"}} Authentication: Bearer Token Returns updated resource or error messages
/colors/:id PUT {color: {color: "#fff"}} Authentication: Bearer Token Returns updated resource or error messages
/colors/:id DELETE Empty Authentication: Bearer Token Returns status of destroying

Labels

Route HTTP Verb Request Body Header Body Description
/labels GET Empty Authentication: Bearer Token Returns user's labels
/labels POST {label: {name: "Business"}} Authentication: Bearer Token Returns created resource or error messages
/labels/:id GET Empty Authentication: Bearer Token Returns resource
/labels/:id PATCH {label: {name: "Birthday"}} Authentication: Bearer Token Returns updated resource or error messages
/labels/:id PUT {label: {name: "Car"}} Authentication: Bearer Token Returns updated resource or error messages
/labels/:id DELETE Empty Authentication: Bearer Token Returns status of destroying

Notes

Route HTTP Verb Request Body Header Body Description
/notes GET Empty Authentication: Bearer Token Returns user's notes
/notes?status=normal GET Empty Authentication: Bearer Token Returns user's normal notes
/notes?status=archived GET Empty Authentication: Bearer Token Returns user's archived notes
/notes?status=deleted GET Empty Authentication: Bearer Token Returns user's deleted notes
/notes POST {label: {name: "Business"}} Authentication: Bearer Token Returns created resource or error messages
/notes/:id GET Empty Authentication: Bearer Token Returns resource
/notes/:id PATCH {label: {name: "Birthday"}} Authentication: Bearer Token Returns updated resource or error messages
/notes/:id PUT {label: {name: "Car"}} Authentication: Bearer Token Returns updated resource or error messages
/notes/:id DELETE Empty Authentication: Bearer Token Returns status of destroying

Images of Note

Route HTTP Verb Request Body Header Body Description
/notes/:note_id/images GET Empty Authentication: Bearer Token Returns user's images of note
/notes/:note_id/images POST {image: {image: Image File}} Authentication: Bearer Token Returns created resource or error messages
/notes/:note_id/images/:id DELETE Empty Authentication: Bearer Token Returns status of destroying

Todos of Note

Route HTTP Verb Request Body Header Body Description
/notes/:note_id/todos GET Empty Authentication: Bearer Token Returns user's todos of note
/notes/:note_id/todos POST {todo: {content: "Create a CV", status: 0, sequence: 0}} Authentication: Bearer Token Returns created resource or error messages
/notes/:note_id/todos/:id GET Empty Authentication: Bearer Token Returns resource
/notes/:note_id/todos/:id PATCH {todo: {sequence: 1}} Authentication: Bearer Token Returns updated resource or error messages
/notes/:note_id/todos/:id PUT {todo: {sequence: 2}} Authentication: Bearer Token Returns updated resource or error messages
/notes/:note_id/todos/:id DELETE Empty Authentication: Bearer Token Returns status of destroying

Collaborators of Note

Route HTTP Verb Request Body Header Body Description
/notes/:note_id/collaborators GET Empty Authentication: Bearer Token Returns user's collaborators of note
/notes/:note_id/collaborators POST {collaborator: {email: "[email protected]"}} Authentication: Bearer Token Returns created resource or error messages
/notes/:note_id/collaborators/:id DELETE Empty Authentication: Bearer Token Returns status of destroying

Installation

Prerequisites

Installation

  • Install GEM dependencies:

    bundle install
  • Create database, migrate tables and run the seed data:

    rails db:create
    rails db:migrate
    rails db:seed
  • If you are setting up again, when you already have previous databases:

    rails db:reset
  • For dropping database

    rails db:drop

LICENSE

GNU GENERAL PUBLIC LICENSE Version 3

google-keep-api's People

Contributors

nejdetkadir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.