I extracted this:
Everything that can be created as a resource, including transactions, sessions and other similar objects without a domain :)
and went with:
TicketActivation Resource.
[POST] with the parameter request amount will return a set of random tickets. and return the resource URL in such a way that you can get as / ticket / id = 1,2,3,4,5 [GET] will return tickets as usual with an additional id filter to return multiple tickets [PUT] will also use the id filter and set to true or false depending on the parameter.
so that I can:
[post]
/ticket/activation/?amount=5
Return resource- /ticket? id = 1,2,3,4,5
.
[get]
/ticket?id=1,2,3,4,5
[put]
/ticket/activation?id=1,2,3,4,5&deActivate [OR]
/ticket/activation?id=1,2,3,4,5&activate
, , RESTfull , . , , , .