From e67759372a87ec5ac19ac0fe9f46c16cf6f76445 Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 25 May 2017 18:43:18 +0900 Subject: [PATCH] test grpc rest --- src/ts/containers/member/regist.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/ts/containers/member/regist.tsx b/src/ts/containers/member/regist.tsx index 3c2e185..bf7ec16 100644 --- a/src/ts/containers/member/regist.tsx +++ b/src/ts/containers/member/regist.tsx @@ -100,18 +100,25 @@ export class MemberRegist extends React.Component { "phone": this.state.phone }; + let exeObj :any; + exeObj = { + "serviceName":"Member", + "methodName":"Regist", + "param":obj + } - output = JSON.stringify(obj); - obj = { "value": output }; + output = JSON.stringify(exeObj); - fetch('http://192.168.1.209:8080/v1/example/echo', { + // obj = { "value": output }; + + fetch('http://192.168.1.203:8080/v1/overflow/services', { method: 'POST', headers: { 'Accept': 'application/json', // mode: 'no-cors' }, - body: JSON.stringify(obj) + body: output }).then(function (response) { return response.json(); }).then(function (json) {