×

Automatic verification and anomaly detection in a representational state transfer (REST) application programming interface

  • US 8,745,641 B1
  • Filed: 07/14/2011
  • Issued: 06/03/2014
  • Est. Priority Date: 07/14/2011
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for automatically detecting an anomaly in an application programming interface having a plurality of invariants, the method comprising:

  • generating a first data transfer request based on a first mapping of a first representational state transfer operation to a first uniform resource locator template and a request payload, the request payload associated with one or more first commands written in a domain specific language that enables the first representational state transfer operation to be expressed using the one or more first commands independently of the request payload'"'"'s syntax or escape characters;

    submitting the generated first data transfer request to a server that implements the application programming interface for processing;

    receiving a first response from the server based on the submitted first data transfer request; and

    automatically testing the received first response based on the one or more first commands in order to verify that the first response satisfies a first invariant in the plurality of invariants of the application programming interface,wherein the generating, the submitting, the receiving, and the testing are performed by one or more computing devices; and

    wherein at least one command in the one or more first commands includes one or more variables, the one or more first commands written in the domain specific language include a return command for extracting a value from the first response and storing the value as a global variable, and the global variable may be substituted for the one or more variables in the one or more first commands.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×