System and method for validating documentation of representational state transfer (REST) services
First Claim
Patent Images
1. A method for validating documentation of a representational state transfer (REST) service, the method comprising:
- detecting, by a validator, one or more messages for a REST service;
translating, by the validator, documentation of the REST service into a representation of an automaton, wherein the automaton is a state machine that transitions from an initial start state to other states based on one or more current inputs;
validating, based on the automaton, the one or more messages wherein validation of the one or more messages determines conformance of the REST service to the documentation of the REST service;
after validating the one or more messages, categorizing, by the validator, a message that is not valid in accordance with a first error code that is expected to be generated by the REST service;
receiving a response from the REST service, the response including a second error code produced by the REST service in response to processing the message; and
verifying whether the first error code matches the second error code.
4 Assignments
0 Petitions
Accused Products
Abstract
A validation tool is provided for a representational state transfer (REST) service. In one embodiment, a method for validating documentation of a REST service includes including detecting one or more messages for a REST service by a validator, wherein the one or more messages are intercepted for the REST service, translating documentation of the REST service, by the validator, into a representation of an automaton, and validating the one or more messages by the validator based on the automaton, wherein validation of the messages determines conformance of the REST service to the documentation of the REST service.
-
Citations
36 Claims
-
1. A method for validating documentation of a representational state transfer (REST) service, the method comprising:
-
detecting, by a validator, one or more messages for a REST service; translating, by the validator, documentation of the REST service into a representation of an automaton, wherein the automaton is a state machine that transitions from an initial start state to other states based on one or more current inputs; validating, based on the automaton, the one or more messages wherein validation of the one or more messages determines conformance of the REST service to the documentation of the REST service; after validating the one or more messages, categorizing, by the validator, a message that is not valid in accordance with a first error code that is expected to be generated by the REST service; receiving a response from the REST service, the response including a second error code produced by the REST service in response to processing the message; and verifying whether the first error code matches the second error code. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A non-transitory computer-accessible storage medium storing program instructions that when executed by a computer cause the computer to implement a representational state transfer (REST) service validator configured to:
-
translate documentation of the REST service into a representation of an automaton, wherein the automaton is a state machine that transitions from an initial start state to other states based on one or more current inputs; validate, based on the automaton, the one or more messages, wherein validation of the one or more messages determines conformance of the REST service to the documentation of the REST service, wherein after validating the one or more messages, the validator is further configured to; categorize a message that is not valid in accordance with a first error code that is expected to be generated by the REST service; receive a response from the REST service, the response including a second error code produced by the REST service in response to processing the message; and verify whether the first error code matches the second error code. - View Dependent Claims (20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36)
-
Specification