source file: here

/precondition

*

*

Preconditions:

  • HTTP/1.1 only
  • "Accept" header requred
  • user defined precondition.

precondition test

/api/documentation

GET

GET

this page

cat group

/api/cat

POST
GET

GET

get current name and age.

POST

set name and age from query parameter.

Query parameters
namenumtypedescription
namefirstText?no description
ageoptionalInt
  • age of cat.
  • cute!

/api/cat/:Text1/:Int2

POST
#typedescription
1Text
  • name of cat.
  • if null, homeless.
2Intage

POST

set name and age from route.

dog group

/api/dog/:Int1

*

*

Preconditions:

  • :Int1 is even.

twice

Preconditions:

  • :Int1 is odd.

succ