Item 1.1

I am an H2

Create a new foo.

Parameter Description
id A unique name for your foo. hyperlink hyperlink code item
version The version of your foo.
format The formatting convention of your foo.

POST

/foo-create

Example Request


curl "https://api.example.com/foo-create" \
-X POST \
-H "Developer-Authorization: fb86c5cd00e4ca3c57bec96ece43f1c87a322a611d5c54f7da871ed6ebdae32b" \
-d '{"id":"41d2","version":"1.4","format":"Y-x"}'
			

// TODO: Put PHP code here
			

// TODO: Put Node.js code here
			

// TODO: Put Python code here
			

Example Request Body


{
  "id":"41d2",
  "version":"1.4",
  "format":"Y-x"
 }
		

Example Response


{
  "status":"foo created"
}
		

Item 1.2

I am an H2

Find a foo.

Parameter Description
id The id key for your foo.

POST

/foo-find

Example Request


curl "https://api.example.com/foo-find" \
-X POST \
-H "Developer-Authorization: fb86c5cd00e4ca3c57bec96ece43f1c87a322a611d5c54f7da871ed6ebdae32b" \
-d '{"id":"41d2"}'
			

// TODO: Put PHP code here
			

// TODO: Put Node.js code here
			

// TODO: Put Python code here
			

Example Request Body


{
  "id":"41d2"
 }
		

Example Response


{
  "status":"foo found",
  "foo": {
  	"id":"41d2",
  	"version":"1.4",
  	"format":"Y-x"
  }
}