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' \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [ | |
{ |
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' \
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' \
{
"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: {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ConfigurationController < ApiController | |
def index | |
render jsonapi: { | |
footer_text: 'CopyRight', | |
footer_color: '#FFF', | |
footer_logo: 's3_iamge_path', | |
} | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GaussJordanElimination | |
attr_reader :max_elements, :matrix, :solution, :sorted_columns | |
def initialize(max_elements) | |
@max_elements = max_elements | |
@matrix = [] | |
@solution = [] | |
@sorted_columns = [] | |
end |
OlderNewer