Skip to content

Instantly share code, notes, and snippets.

View sudeeptarlekar's full-sized avatar
💎
Love Ruby

Sudeep Tarlekar sudeeptarlekar

💎
Love Ruby
View GitHub Profile
curl -X PUT \
https://api.rechargeapps.com/orders/XXX \
-H 'Content-Type: application/json' \
-H 'x-recharge-access-token: XXX' \
-d '{
"line_items": [
{
"price": "0.00",
"properties": [
{
@sudeeptarlekar
sudeeptarlekar / monthly_summary.md
Last active December 6, 2018 10:04
Monthly Summary API

API

curl -X GET \
  'http://localhost:3000/api/v1/organizations/big_binary/time_trackings/monthly_summary?month=12&year=2018 \
  -H 'Content-Type: application/json' \
  -H 'X-Auth-Email: neeraj@bigbinary.com' \
  -H 'X-Auth-Token: kCK-Wh-xk6oYwpJn4BdP' \

JSON Response

@sudeeptarlekar
sudeeptarlekar / daily_summary_api.md
Created December 6, 2018 10:09
Daily Summary API

API

curl -X GET \
  'http://localhost:3000/api/v1/organizations/big_binary/time_entries/user_time_entries?date=2018-12-06&selected_user_id=8bdf8d08-feab-4fa6-ae00-69bd28681193' \
  -H 'Content-Type: application/json' \
  -H 'X-Auth-Email: neeraj@bigbinary.com' \
  -H 'X-Auth-Token: kCK-Wh-xk6oYwpJn4BdP' \

JSON Response

@sudeeptarlekar
sudeeptarlekar / project_summary_API.md
Created December 6, 2018 14:25
Project Summary API

API

curl -X GET \
  'http://localhost:3000/api/v1/organizations/big_binary/reports/project_summary?view=project_summary&group_by=projects&project_ids[]=40&start_date=2018-12-03&end_date=2018-12-09&=' \
  -H 'Content-Type: application/json' \
  -H 'X-Auth-Email: neeraj@bigbinary.com' \
  -H 'X-Auth-Token: kCK-Wh-xk6oYwpJn4BdP' \

JSON Response

@sudeeptarlekar
sudeeptarlekar / project_summary_API_new.md
Last active December 10, 2018 19:01
Final Project Summary API Response
{
    "startDate": "2018-12-03",
    "endDate": "2018-12-09",
    "totalBilledHours": "158.23",
    "totalUnbilledHours": "158.23",
    "totalAmount": "500.00",
    "projectsList": [
        {
            "label": "All Projects",
{
    "startDate": "2018-12-10",
    "endDate": "2018-12-16",
    "projectsList": [
        {
            "label": "All Projects",
            "value": null
        },
        {
{
  billedTime: 27.26,
  nonBillableTime: 14.24,
  TotalReportedTime: 41.50,
  endDate: "2018-12-02",
  startDate: "2018-11-26",
  name: "Chirag Shah",
  userImage: "URL for cloudinary with 100x100 ratio",
 timeEntriesSummary: {
class ConfigurationController < ApiController
def index
render jsonapi: {
footer_text: 'CopyRight',
footer_color: '#FFF',
footer_logo: 's3_iamge_path',
}
end
end
syntax on
set re=0
" let g:gruvbox_contrast_dark="medium"
colorscheme gruvbox
autocmd vimenter * hi Normal guibg=NONE ctermbg=NONE
set tabstop=2
set relativenumber
set expandtab
@sudeeptarlekar
sudeeptarlekar / amqdurasub.rb
Created September 18, 2020 18:20
Updated example for durable subscribers
# -*- encoding: utf-8 -*-
#
# The current require dance for different Ruby versions.
# Change this to suit your requirements.
#
if Kernel.respond_to?(:require_relative)
require_relative("./stomp_common")
else
$LOAD_PATH << File.dirname(__FILE__)