Skip to content

Sample Project using node demonstrating input and output protocols

Notifications You must be signed in to change notification settings

umovme/umovme-online-connector-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependences

git clone [email protected]:umovme/umovme-online-connector-node.git
  • Resolve Dependences
$ > cd umovme-online-connector-node && npm install
$ > DEBUG=umovme-online-connector:* npm start

Examples

Image List

Request

URL: http://localhost:3000/components/images
Content-Type: application/json
Body:
{
    "id":"999"
}

Response

{
	"image_list": {
		"images": [{
			"url": "http://image.google.com/1"
		}, {
			"url": "http://image.google.com/2"
		}]
	}
}

Data List

Request

URL: http://localhost:3000/components/datalist
Content-Type: application/json
Body:
{
    "id":"999"
}

Response

{
	"data_list": {
		"groups": [{
				"description": "INFORMAÇÕES",
				"values": [{
						"label": "Código:",
						"value": "1000"
					},
					{
						"label": "Situação:",
						"value": "Ativo"
					}
				]
			},
			{
				"description": "DETALHES",
				"values": [{
						"label": "Endereço:",
						"value": "Avenida Paraná"
					},
					{
						"label": "Zona:",
						"value": "Norte"
					}
				]
			}
		]
	}
}

Images and Data List

Request

URL: http://localhost:3000/components/images-and-datalist
Content-Type: application/json
Body:
{
    "id":"999"
}

<<<<<<< HEAD

Response

{
	"image_list": {
		"images": [{
			"url": "http://image.google.com/1"
		}, {
			"url": "http://image.google.com/2"
		}]
	},
	"data_list": {
		"groups": [{
				"description": "INFORMAÇÕES",
				"values": [{
						"label": "Código:",
						"value": "1000"
					},
					{
						"label": "Situação:",
						"value": "Ativo"
					}
				]
			},
			{
				"description": "DETALHES",
				"values": [{
						"label": "Endereço:",
						"value": "Avenida Paraná"
					},
					{
						"label": "Zona:",
						"value": "Norte"
					}
				]
			}
		]
	}
}

About

Sample Project using node demonstrating input and output protocols

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published