Skip to content

Commit

Permalink
Update MP Database archetype README to use "type" not "idType" (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
barchetta committed Sep 9, 2020
1 parent 18d4c7c commit 1f6f41a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archetypes/database-mp/src/main/resources/README.md.mustache
Expand Up @@ -14,12 +14,12 @@ java -jar target/{{artifactId}}.jar

```
curl -X GET http://localhost:8080/pokemon
[{"id":1,"idType":12,"name":"Bulbasaur"}, ...]
[{"id":1,"type":12,"name":"Bulbasaur"}, ...]

curl -X GET http://localhost:8080/type
[{"id":1,"name":"Normal"}, ...]

curl -H "Content-Type: application/json" --request POST --data '{"id":100, "idType":1, "name":"Test"}' http://localhost:8080/pokemon
curl -H "Content-Type: application/json" --request POST --data '{"id":100, "type":1, "name":"Test"}' http://localhost:8080/pokemon
```

## Try health and metrics
Expand Down

0 comments on commit 1f6f41a

Please sign in to comment.