How to 'Select the Sent Request command above the GET'

A L 20 Reputation points
2024-04-26T05:23:54.9633333+00:00

Hi there,

I am learning the course 'Create a web API with ASP.NET Core controllers', https://learn.microsoft.com/en-nz/training/modules/build-web-api-aspnet-core/3-exercise-create-web-api

It states 'Open the ContosoPizza.http file.

This file has been pre-configured with the @ContosoPizza_HostAddress variables and a GET command calling /weatherforecast/ that accepts application/json.

Select the Sent Request command above the GET which will send a request to the running service.

Calling this command will open a response window with output similar to what we saw in the browser:'

I am unsure how to Select the Sent Request command? The file is exactly like below and nowhere to select the Sent request command:

'@ContosoPizza_HostAddress = http://localhost:5179

GET {{ContosoPizza_HostAddress}}/weatherforecast/

Accept: application/json

'

This question is related to the following Learning Module

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,032 questions
{count} votes

Accepted answer
  1. Pradeep M 645 Reputation points Microsoft Vendor
    2024-04-26T06:55:33.2033333+00:00

    Hi A L,

    Thank you for reaching out to Microsoft Q & A forum.    

    I have finished the tutorial exercise on,  Creating a Web API Project , and I found the instructions straightforward and easy to follow. Following them, I managed to set up a new API application. 

     Before going through the .http files you must install REST Client extension 

     Then after going through explore with .http files. 

     1.Open the ContosoPizza.http file. 

     This file has been pre-configured with the @ContosoPizza_HostAddress variables and a GET command calling /weatherforecast/ that accepts application/json. 

     2.Select the Sent Request command above the GET which will send a request to the running service. 

    I've attached a screenshot for your reference.  

    Explore with .http files: w5 If you encounter any future issues, please feel free to contact us, and we will be pleased to assist you further. 

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community. 

    Thank you. 


0 additional answers

Sort by: Most helpful