Created
December 28, 2025 17:23
-
-
Save sunmeat/21d86f888c305176c84537e6bb551e99 to your computer and use it in GitHub Desktop.
команди для Package Manager Console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Invoke-RestMethod https://localhost:7279/api/students -Method GET | |
| Invoke-RestMethod https://localhost:7279/api/students/3 -Method GET | |
| Invoke-RestMethod https://localhost:7279/api/students -Method POST -Body (@{Name = "Олег"; Surname = "Сидоренко"; Age = 20; GPA = 10.5} | ConvertTo-Json) -ContentType "application/json; charset=utf-8" | |
| Invoke-RestMethod https://localhost:7279/api/students -Method GET | |
| Invoke-RestMethod https://localhost:7279/api/students -Method PUT -Body (@{Id = 4; Name = "Олег"; Surname = "Сидоренко"; Age = 27; GPA = 10.7} | ConvertTo-Json) -ContentType "application/json; charset=utf-8" | |
| Invoke-RestMethod https://localhost:7279/api/students -Method GET | |
| Invoke-RestMethod https://localhost:7279/api/students/4 -Method DELETE | |
| Invoke-RestMethod https://localhost:7279/api/students -Method GET |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment