HOME EXPERTISE SERVICES ABOUT CONTACT
MUSIC RECOMMENDATION ENGINE PRIME NUMBER REST API
REST API FRONTEND: checking   CLOUD COMPUTING BACKEND: checking   WEB INTERFACE GATEWAY: checking

Prime Number Web API


Try For Yourself!

GO!

TRY A RANDOM NUMBER!

Mezurashico's cloud-based Prime Number REST API provides an enterprise-level web service that integrates seamlessly into your current solution architecture. The power of cloud-based prime number lookup can be leveraged regardless of your application platform through established web technologies.

Enterprise Applications

of Prime Number Technology include:

Premium Service

Mezurashico offers a premium service level agreement for select corporate partners. This package includes:

Web API Documentation

API input (if any) and output (if any) is JSON. The API is designed to be usable using only HTTP queries, JSON data is for advanced features or supplementary information only.

REST Methods

Entrypoint: http://numbers.mezurashico.com/primes/number

HTTPDescription
GET Query number for primeness.

Returns:
HTTPResponse bodyDescription
200Number objectnumber is a prime number
404Number objectnumber is not a prime number
204nonenumber is currently being processed by the Cloud Computing Backend
304noneResult hasn't changed since previous request
402noneDaily free quota exceeded (non-Premium users only)
503noneResources are diverted to paying customers (non-Premium users only)


POST/PUT Supply primeness information of number for processing.

Request body:
Number object (only prime property is required)

Returns:
HTTPResponse bodyDescription
202noneRequest will be processed by Cloud Computing Backend
412Error objectRequest content type is not JSON
404Error objectnumber does not exist (POST only)
400Error objectRequest JSON is invalid
402noneDaily free quota exceeded (non-Premium users only)


DELETE Get rid of number.

Returns:
HTTPResponse bodyDescription
501noneWe don't have the technology yet
404nonenumber does not exist
402noneDaily free quota exceeded (non-Premium users only)


JSON Objects

Number object
{
  number: number
  prime: boolean
  order: integer
}
number is not required for POST/PUT requests.
order is only available/valid when prime is true and indicates the order of the prime number, i.e. 7 is the order 4 (4th) prime number.
Error object
{
  error: string
}
error contains an error message.


Release date: April 1, 2014