Skip to content

Instantly share code, notes, and snippets.

View someshkoli's full-sized avatar
🎧
headbanging

Somesh Koli someshkoli

🎧
headbanging
View GitHub Profile
def hygiene_index_list(outlet_code, interval=None, _to=None, _from=None):
td = datetime.date.today()
temp_group_id = None
timeInterval = None
duration_filter = None
if interval:
if interval == "day":
temp_group_id = {
router.get('/heatmap/:compCode/:compLocationCode/:interval', (req, res) => {
customerCountController.getHeatMap({...req.params}, (result, error) => {
if (error != null) {
req.status(400).json(error)
}
req.status(200).json(result)
})
})
@someshkoli
someshkoli / report.md
Last active March 15, 2021 18:26
Google Summer of Code 2020 with Postman Inc: Final Report
drawingdrawing

Google Summer of Code 2020 with Postman Inc: Final Report

Special thanks to @umeshp7 & @postmanlabs

About Myself

My name is Somesh Koli and I'll be working with @postmanlabs to build an SDK generator for postman collections. I've been using postman app since a very long time and when I got to know that Postman will be participating in GSoC'20, I was excited to get started with it and aimed to build a good proposal which would result in benefiting postman community all around the world and also be a part of this.

@someshkoli
someshkoli / clientSDK.js
Last active August 26, 2020 02:21
Sample SDK Output
var request = require('request');
const configVariables = {};
/**
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@param {object} config - Variables to used in SDK.
*/
function SDK(config = {}) {
@someshkoli
someshkoli / usage.js
Created July 21, 2020 20:09
sdk-generator usage
const generate = require('.').generate;
// this version is valid till the first cut feature/nodejs-request-sdkgen
generate({
type: 'json',
collection: //collection json here
}, {
language: 'Nodejss',
variant: 'request',
}, (err, snippet) => {
console.log(err);
@someshkoli
someshkoli / sdk.js
Last active July 17, 2020 21:17
Sample sdkgen output from postman-collection-code-generator
var request = require('request');
const configVariables = {
'var1': 'valur',
'var2': 'value2',
'var3': 'value3',
'var4': 'value4',
'var5': 'value5',
'url': 'https://postman-echo.com',
};