Skip to content

Questions/Concerns from Tutorial #11

@drdexter33

Description

@drdexter33

Hello.

I decided to learn React/.Net Core API full stack development and came across this tutorial:

https://learn.microsoft.com/en-us/training/modules/build-web-api-minimal-spa/

I was able to get everything working as expected but had some questions about a couple of things:

Question 1:
In the tutorial step: Exercise - Create an API, there is a step to create a file named db.json in the PizzaClient directory:

image

Then after the step to "Prepare proxy to mock server" there is a step to "Start the mock server":

image

In this step I can open a web browser to test the API but the tutorial language seems to indicate that we can test the CRUD functionality to "make sure the changes work", however I cannot see a way to do this from the web browser:

image

Although If I click on the Pizzas hyperlink, I can see the JSON data from db.json:

image

### Should I have CRUD functionality available when I run the mock API?

Question 2:

In the tutorial step: Exercise - Start the .NET Core API server

image

When I use my web browser and point it to localhost:5100, the "Hello World" message is displayed:

image

However, localhost:5100/pizzas

Shows only pepperoni:

image

However I was expecting to see json data that reflected db.json:

image

### Was this expectation incorrect? If so what was the source of the seed data?

Question 3:

This is more related to debugging.

I was able to update my launch.json file to get VS Code to debug the PizzaClient code:

image

However I'm wonder how to set up debugging to trace into the API to be able to see end-to-end debugging.

Is there a way to do this in VS Code?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions