Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 940 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 940 Bytes

API

This is a sample PHP site to show how various HTTP methods work with an API

To view an example of the custom 404 page, go to https://api.joekellyonline.com

Method Endpoint Purpose
GET https://api.joekellyonline.com/users Returns a list of users in JSON.
GET anything else Will return page not found (404).
POST https://api.joekellyonline.com/auth Will verify login and return token.
POST https://api.joekellyonline.com/contact Sends an email with optional fields: name, phone, email, and subject
DELETE https://api.joekellyonline.com/auth Will remove the token.
HEAD, PUT, CONNECT
OPTIONS, TRACE, PATCH
all Will return method not allowed (405).