Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chandrakanta2013/programminghub_chirag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming Hub

saveProgram

Sample Request

POST http://localhost:3000/programminghub/saveProgram

{
	"data": {
		"programname": "Sum",
		"programcategory": "Algorithms",
		"code": "<?php function sum(a, b) { return a + b; } ?>",
		"programlanguage": "php",
		"programdescription": "It does sum",
		"exampleoutput": " 6 + 6 => 12",
		"difficultylevel": "1",
		"Isrunnable": "Y",
		"input": ["3,4", "9,3", "3,2"],
		"output": ["7", "12", "5"]
	}
}
Sample Response

{
    "message": "SUCCESS",
    "reason": ""
}

getProgram

Sample Request

GET http://localhost:3000/programminghub/getProgram?version=123&client=android&app=p_hub&language=php
Sample Response

{
	"language": "",
	"category": [
		"Algorithms",
		"Algorithms"
	],
	"name": [
		"Multiplication",
		"Sum"
	],
	"desc": [
		"It does multiplication",
		"It does sum"
	],
	"program": [
		"<?php function mul(a, b) { return a * b; } ?>",
		"<?php function sum(a, b) { return a + b; } ?>"
	],
	"output": [
		[
			"12",
			"27",
			"6"
		],
		[
			"7",
			"12",
			"5"
		]
	],
	"input": [
		[
			"3,4",
			"9,3",
			"3,2"
		],
		[
			"3,4",
			"9,3",
			"3,2"
		]
	],
	"runnable": [
		"Y",
		"Y"
	],
	"message": "SUCCESS",
	"reason": ""
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published