N
N
nepster-web2013-12-03 20:27:50
Computer networks
nepster-web, 2013-12-03 20:27:50

Actions on the site

For example, there are actions on the site: delete news, edit and view.
Somehow it became not convenient to create a separate action (mvs) for each action.
Passing the flag (action=delete) is also somehow not beautiful.
I heard somewhere that such a thing (view, delete, edit) can be passed directly through the protocol or something like that.
Please tell me how it is done there, somewhere I saw it on Habré, but I lost the link, but I don’t remember the name at all.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nazar Mokrinsky, 2013-12-03
@nepster-web

The method by which the request is sent can be different.
The most popular and sufficient in most cases: GET/PUT/POST/DELETE.
Read about REST - everything is written there.

M
Masterme, 2013-12-04
@Masterme

First, you still have to create action. Secondly, only GET and POST are guaranteed to work in all browsers. Is it ugly to pass the flag? I'm sorry you're worried about such little things.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question