Skip to content

Instantly share code, notes, and snippets.

@sunmeat
Created December 28, 2025 17:23
Show Gist options
  • Select an option

  • Save sunmeat/21d86f888c305176c84537e6bb551e99 to your computer and use it in GitHub Desktop.

Select an option

Save sunmeat/21d86f888c305176c84537e6bb551e99 to your computer and use it in GitHub Desktop.
команди для Package Manager Console
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