Skip to content
Snippets Groups Projects
Commit a8955e0a authored by antoine gaienier's avatar antoine gaienier :speech_balloon:
Browse files

pour la doc

parent 5d6eafba
No related branches found
No related tags found
No related merge requests found
Showing
with 302 additions and 0 deletions
<Context reloadable="true" />
meta {
name: DeleteIngredient
type: http
seq: 7
}
delete {
url: http://localhost:8080/pizzeria/ingredients/0
body: none
auth: none
}
docs {
Avant de faire ce DELETE vou de vais faire la requête "IngrediantPost"
}
meta {
name: FindIngrediantByID
type: http
seq: 2
}
get {
url: http://localhost:8080/pizzeria/ingredients/2
body: none
auth: none
}
meta {
name: IngrediantPatch price
type: http
seq: 6
}
patch {
url: http://localhost:8080/pizzeria/ingredients/0
body: json
auth: none
}
body:json {
{
"price":10.5
}
}
meta {
name: IngrediantPost
type: http
seq: 4
}
post {
url: http://localhost:8080/pizzeria/ingredients
body: json
auth: none
}
body:json {
{
"id":0 ,
"name":"poison" ,
"price":0
}
}
meta {
name: Ingredient Patch name
type: http
seq: 5
}
patch {
url: http://localhost:8080/pizzeria/ingredients/0
body: json
auth: none
}
body:json {
{
"name":"poisson"
}
}
meta {
name: IngretiantName
type: http
seq: 3
}
get {
url: http://localhost:8080/pizzeria/ingredients/2/name
body: none
auth: none
}
meta {
name: findall
type: http
seq: 1
}
get {
url: http://localhost:8080/pizzeria/ingredients
body: none
auth: none
}
meta {
name: FailDelete
type: http
seq: 5
}
delete {
url: http://localhost:8080/pizzeria/ingredients/0
body: none
auth: none
}
assert {
res.status: eq 404
}
meta {
name: FindByIDFail
type: http
seq: 1
}
get {
url: http://localhost:8080/pizzeria/ingredients/0
body: none
auth: none
}
assert {
res.status: eq 404
}
meta {
name: FindByIDNameFail
type: http
seq: 6
}
get {
url: http://localhost:8080/pizzeria/ingredients/0/name
body: none
auth: none
}
query {
:
}
assert {
res.status: eq 404
}
meta {
name: IngrediantPostFail
type: http
seq: 2
}
post {
url: http://localhost:8080/pizzeria/ingredients
body: json
auth: none
}
body:json {
{
"id":2 ,
"name":"fromage" ,
"price":10
}
}
assert {
res.status: eq 409
}
meta {
name: Ingredient Patch fail (not foud ingredient)
type: http
seq: 4
}
patch {
url: http://localhost:8080/pizzeria/ingredients/0
body: json
auth: none
}
body:json {
{
"name":"poisson"
}
}
assert {
res.status: eq 404
}
meta {
name: Ingredient Patch name fail
type: http
seq: 3
}
patch {
url: http://localhost:8080/pizzeria/ingredients/1
body: json
auth: none
}
body:json {
{
"nom":"poisson"
}
}
assert {
res.status: eq 500
}
meta {
name: Pizza Delete (une pizza)
type: http
seq: 6
}
delete {
url: http://localhost:8080/pizzeria/pizzas/chorizo
body: none
auth: none
}
meta {
name: PizzaByName
type: http
seq: 2
}
get {
url: http://localhost:8080/pizzeria/pizzas/3fromages
body: none
auth: none
}
meta {
name: PizzaDeleteIngredient (un ingredient d'une pizza)
type: http
seq: 5
}
delete {
url: http://localhost:8080/pizzeria/pizzas/chorizo/7
body: none
auth: none
}
meta {
name: PizzaPost
type: http
seq: 4
}
post {
url: http://localhost:8080/pizzeria/pizzas
body: json
auth: none
}
body:json {
{
"nom" : "chorizo",
"pate" :"classique",
"prixBase" : 4,
"ingredients":[
{
"id":7 ,
"name":"sauce tomate" ,
"price":0.50
},
{"id":1 ,
"name":"pomme de terre" ,
"price":1
}
]
}
}
meta {
name: PizzaPrixtotal
type: http
seq: 3
}
get {
url: http://localhost:8080/pizzeria/pizzas/3fromages/prixfinal
body: none
auth: none
}
meta {
name: pizzaALL
type: http
seq: 1
}
get {
url: http://localhost:8080/pizzeria/pizzas
body: none
auth: none
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment