How to design api with CRUD operations


#1

I have following use cases
GET /tickets - Retrieves a list of tickets
POST /tickets - Creates a new ticket
GET /tickets/12 - Retrieves a specific ticket
PUT /tickets/12 - Updates ticket #12

When I design the api using raml, how do I differentiate the endpoint for different operation?
Any one has any suggestion?


#2

Are you looking for something like that:

/tickets:
  get:
  post:
  /{ticketId}:
    get:
    put:

?