# US 2014/0157227 A1 · Method and system for preserving restful web service structure in a client consuming the restful web service

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0157227 A1
- Document ID: US20140157227A1
- Status: Published application
- Kind: A1
- Application number: 13/690,466
- Filed: 2012-11-30
- Published: 2014-06-05
- Earliest claimed: 2012-11-30
- Assignees: Red Hat Israel, Ltd.
- Applicants: Red Hat Israel, Ltd.
- Inventors: Michael Pasternak
- Web page: https://patentgrep.com/patent/US20140157227A1

## CPC

- G06F 8/30: Creation or generation of source code
- G06F 16/9566: {URL specific, e.g. using aliases, detecting broken or misspelled links}
- G06F 8/40: Transformation of program code
- G06F 9/54: Interprogram communication
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer system identifies a uniform resource identifier (URI) that corresponds to a resource of a RESTful web service. The URI contains elements. The computer system identifies a relationship between the elements of the URI and creates programming code for a method of a software development kit (SDK) client. The method reflects the relationships between the elements of the URI to facilitate communication with the resource of the RESTful web service.

## Claims

### Claim 1

A method comprising:
identifying a uniform resource identifier (URI) that corresponds to a resource of a RESTful (Representational State Transfer) web service provided by a server, the URI comprising a plurality of elements;
identifying relationships between the plurality of elements of the URI; and
creating programming code for a method of a software development kit (SDK) client, the method reflecting the relationships between the plurality of elements of the URI to facilitate communication with the resource of the RESTful web service.

### Claim 2 (depends on 1)

The method of claim 1, wherein identifying relationships between the plurality of elements of the URI indicates a relationship between an entry point for the RESTful web service and a collection of the RESTful web service.

### Claim 3 (depends on 2)

The method of claim 2, wherein creating programming code for the method comprises:
creating programming code for an entry point class using a name of the entry point in the URI;
creating programming code for a collection class for the collection using a name of the collection in the URI;
adding a collection pointer, that points to the collection class, in the entry point class programming code; and
adding a method pointer, that points to the method, in the collection class programming code, wherein the entry point class programming code, the collection class programming code, the collection pointer, and the method pointer create the relationship that is identified in the URI.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
adding the entry point class programming code and the collection class programming code to the software development kit client.

### Claim 5 (depends on 1)

The method of claim 1, wherein identifying the URI comprises:
identifying a URI description for the URI in RESTful service descriptive language (RSDL) for the RESTful web service.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
identifying a second URI that corresponds to a second resource of the RESTful web service, the second URI comprising a second plurality of elements;
identifying relationships between the second plurality of elements of the second URI; and
creating programming code for a second method of the SDK client, the second method reflecting the relationships between the second plurality of elements of the second URI to facilitate communication with the second resource of the RESTful web service.

### Claim 7

A non-transitory computer-readable storage medium including instructions that, when executed by a processing device, cause the processing device to perform a set of operations comprising:
identifying a uniform resource identifier (URI) that corresponds to a resource of a RESTful (Representational State Transfer) web service provided by a server, the URI comprising a plurality of elements;
identifying relationships between the plurality of elements of the URI; and
creating programming code for a method of a software development kit (SDK) client, the method reflecting the relationships between the plurality of elements of the URI to facilitate communication with the resource of the RESTful web service.

### Claim 8 (depends on 7)

The non-transitory computer-readable storage medium of claim 7, wherein identifying relationships between the plurality of elements of the URI indicates a relationship between an entry point for the RESTful web service and a collection of the RESTful web service.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein creating programming code for the method comprises:
creating programming code for an entry point class using a name of the entry point in the URI;
creating programming code for a collection class for the collection using a name of the collection in the URI;
adding a collection pointer, that points to the collection class, in the entry point class programming code; and
adding a method pointer, that points to the method, in the collection class programming code, wherein the entry point class programming code, the collection class programming code, the collection pointer, and the method pointer create the relationship that is identified in the URI.

### Claim 10 (depends on 9)

The non-transitory computer-readable storage medium of claim 9, further comprising:
adding the entry point class programming code and the collection class programming code to the software development kit client.

### Claim 11 (depends on 7)

The non-transitory computer-readable storage medium of claim 7, wherein identifying the URI comprises:
identifying a URI description for the URI in RESTful service descriptive language (RSDL) for the RESTful web service.

### Claim 12 (depends on 7)

The non-transitory computer-readable storage medium of claim 7, the operations further comprising:
identifying a second URI that corresponds to a second resource of the RESTful web service, the second URI comprising a second plurality of elements;
identifying relationships between the second plurality of elements of the second URI; and
creating programming code for a second method of the SDK client, the second method reflecting the relationships between the second plurality of elements of the second URI to facilitate communication with the second resource of the RESTful web service.

### Claim 13

A system comprising:
a memory; and
a processing device coupled to the memory to:
identify a uniform resource identifier (URI) that corresponds to a resource of a RESTful (Representational State Transfer) web service provided by a server, the URI comprising a plurality of elements;
identify relationships between the plurality of elements of the URI; and
create programming code for a method of a software development kit (SDK) client, the method reflecting the relationships between the plurality of elements of the URI to facilitate communication with the resource of the RESTful web service.

### Claim 14 (depends on 13)

The system of claim 13, wherein identifying relationships between the plurality of elements of the URI indicates a relationship between an entry point for the RESTful web service and a collection of the RESTful web service.

### Claim 15 (depends on 14)

The system of claim 14, wherein creating programming code for the method comprises:
creating programming code for an entry point class using a name of the entry point in the URI;
creating programming code for a collection class for the collection using a name of the collection in the URI;
adding a collection pointer, that points to the collection class, in the entry point class programming code; and
adding a method pointer, that points to the method, in the collection class programming code, wherein the entry point class programming code, the collection class programming code, the collection pointer, and the method pointer create the relationship that is identified in the URI.

### Claim 16 (depends on 15)

The system of claim 15, wherein the processing device is further to:
add the entry point class programming code and the collection class programming code to the software development kit client.

### Claim 17 (depends on 13)

The system of claim 13, wherein identifying the URI comprises:
identifying a URI description for the URI in RESTful service descriptive language (RSDL) for the RESTful web service.

### Claim 18 (depends on 13)

The system of claim 13, wherein the processing device is further to:
identify a second URI that corresponds to a second resource of the RESTful web service, the second URI comprising a second plurality of elements;
identify relationships between the second plurality of elements of the second URI; and
create programming code for a second method of the SDK client, the second method reflecting the relationships between the second plurality of elements of the second URI to facilitate communication with the second resource of the RESTful web service.
