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?
> >
> >
> >
> >
> >
> >
> >------------------&nbsp;Original&nbsp;------------------
> >From:&nbsp;"xia Yanick"<[email protected]&gt;;
> >Date:&nbsp;Wed, Dec 4, 2019 05:10 PM
> >To:&nbsp;"dev"<[email protected]&gt;;
> >
> >Subject:&nbsp;Re: [ShardingScaling][Discuss] Http request APIS about
> shardingscaling
> >
> >
> >
> >HI Xiang:
> >       how about that stop a job like:
> >
> >       PUT /shardingscaling/job/<job_id&gt;
> >       Content-Type: application/json
> >       Body:&nbsp; { "status": "stop" }
> >
> >
> >
> >&gt; On Dec 4, 2019, at 17:05, sushixiang <[email protected]&gt; wrote:
> >&gt;
> >&gt;
>


-- 
Zhiyi Yan (Zhyee)
Apache ShardingSphere

Reply via email to