Merge pull request #79 from kevinhillinger/content
Content updates - section 6 and 8
This commit is contained in:
Коммит
58ae03636a
|
@ -15,7 +15,7 @@ From Section 00, you should already have a CosmosDB account named `sclabc-<uniqu
|
|||
- Click on the "Data Explorer" menu item
|
||||
- Expand the container named `azure-spring-cloud-cosmosdb`.
|
||||
- In that container, expand the container named `City`.
|
||||
- Click on "Items" and use the "New Item" button to create some sample items:
|
||||
- Click on "Items" and use the "New Item" button to create some sample items using the contents below:
|
||||
|
||||
```json
|
||||
{
|
||||
|
|
|
@ -71,11 +71,18 @@ cd ..
|
|||
- Select `gateway` to have more information on the microservice.
|
||||
- Copy/paste the public URL that is provided (there is a "Test Endpoint" like for microservices, but the gateway is directly exposed on the Internet, so let's use the public URL). Keep this URL handy for subsequent sections.
|
||||
|
||||
As the gateway is connected to the Spring Cloud Service Registry, it should have automatically opened routes to the available microservices, with URL paths in the form of `/MICROSERVICE-ID/**`:
|
||||
[The MICROSERVICE-ID must be in capital letters]
|
||||
As the gateway is connected to the Spring Cloud Service Registry, it should have automatically opened routes to the available microservices, with URL paths in the form of `/MICROSERVICE-ID/**`.
|
||||
|
||||
- Test the `city-service` microservice endpoint by doing: `curl https://XXXXXXXX-gateway.azuremicroservices.io/CITY-SERVICE/cities` (replacing XXXXXXXX with the name of your Azure Spring Cloud instance)
|
||||
- Test the `weather-service` microservice endpoint by doing: `curl 'https://XXXXXXXX-gateway.azuremicroservices.io/WEATHER-SERVICE/weather/city?name=Paris%2C%20France'` (replacing XXXXXXXX by the name of your gateway)
|
||||
> 🛑 **The MICROSERVICE-ID must be uppercase, all CAPS**. Replace XXXXXXXX with the name of your Azure Spring Cloud instance.
|
||||
|
||||
- Test the `city-service` microservice endpoint:
|
||||
```
|
||||
curl https://XXXXXXXX-gateway.azuremicroservices.io/CITY-SERVICE/cities
|
||||
```
|
||||
- Test the `weather-service` microservice endpoint by doing:
|
||||
```
|
||||
curl 'https://XXXXXXXX-gateway.azuremicroservices.io/WEATHER-SERVICE/weather/city?name=Paris%2C%20France'
|
||||
```
|
||||
|
||||
If you need to check your code, the final project is available in the ["gateway" folder](gateway/).
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче