Skip to content
/ api Public

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

Notifications You must be signed in to change notification settings

pecuniam1/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages