Hi, I think he's just suggesting a API style, restful API treat jobs as a resource, and do something to this resource.
Sion Yang <[email protected]> 于2019年12月5日周四 上午9:45写道: > Agree. [PUT] /job/<job_id> with stop status in body is not as clear as > using `stop` on uri directly, I think. > > > > > -- > > Yi Yang(Sion) > Apache ShardingSphere > > > > At 2019-12-05 09:29:20, "sushixiang" <[email protected]> wrote: > >Hi, PUT may be used for modification, but we really not modify anything. > And I think this may be not as straightforward as putting 'stop' in the > url.What do you think? > > > > > > > > > > > > > >------------------ Original ------------------ > >From: "xia Yanick"<[email protected]>; > >Date: Wed, Dec 4, 2019 05:10 PM > >To: "dev"<[email protected]>; > > > >Subject: Re: [ShardingScaling][Discuss] Http request APIS about > shardingscaling > > > > > > > >HI Xiang: > > how about that stop a job like: > > > > PUT /shardingscaling/job/<job_id> > > Content-Type: application/json > > Body: { "status": "stop" } > > > > > > > >> On Dec 4, 2019, at 17:05, sushixiang <[email protected]> wrote: > >> > >> > -- Zhiyi Yan (Zhyee) Apache ShardingSphere
