Middle+
Mida saab GET-päringus edastada?
sobes.tech AI
Vastus AI-lt
In a GET request, data can only be transmitted via the URL, usually in the form of query parameters. This is a key-value pair added after the question mark (?) in the URL. For example:
https://example.com/api/items?category=books&sort=price_asc
In a GET request, the request body cannot be sent, so all data must be included in the URL. This is commonly used for filtering, sorting, pagination, and other parameters that do not change the server's state.