# US 2019/0377615 A1 · Instructing the use of application programming interface commands in a runtime environment

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

- Number: US 2019/0377615 A1
- Document ID: US20190377615A1
- Status: Published application
- Kind: A1
- Application number: 16/547,689
- Filed: 2019-08-22
- Published: 2019-12-12
- Earliest claimed: 2018-06-07
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Darren R. Beard; Colin R. Penfold; Ian J. Mitchell
- Web page: https://patentgrep.com/patent/US20190377615A1

## CPC

- G06F 9/54: Interprogram communication
- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, computer system, and a computer program product for instructing the use of application programming interface (API) commands in a runtime environment is provided. The present invention may include receiving, by a computer processor, a source code with a high level language API command. The present invention may include accessing, by a computer processor, metadata for the source code and determining whether the metadata includes an instruction to be applied to the high level language API command, and applying, by a computer processor, the instruction to the high level language API command. The present invention may include processing, by a computer processor, the high level language API command to a low level code using a command translator, wherein the processing occurs after the applying the instruction.

## Claims

### Claim 1

A method for instructing the use of application programming interface (API) commands in a runtime environment, the method comprising:
receiving, by a computer processor, a source code with a high level language API command;
accessing, by a computer processor, metadata for the source code;
applying, by a computer processor, an instruction included in the metadata to the high level language API command; and
processing, by a computer processor, the high level language API command to a low level code using a command translator based, at least in part, on the metadata.

### Claim 2 (depends on 1)

The method of claim 1, wherein the instruction applied to the high level language API command includes allowing or disallowing the high level language API command, or issuing a warning message relating to some, but not all, parameters of the high level language API command.

### Claim 3 (depends on 2)

The method of claim 2, wherein disallowing the high level language API command instructs the command translator not to translate the high level language API command resulting in no valid code in the runtime environment for the API command, and wherein allowing the high level language API command instructs the command translator to activate a switched off API command in the source code resulting in a valid code in the runtime environment for the high level language API command.

### Claim 4 (depends on 2)

The method of claim 2, wherein issuing a warning message relating to some, but not all, parameters of the high level language API command instructs the command translator to process the high level language API command as normal resulting in a valid code in the runtime environment for the high level language API command.

### Claim 5 (depends on 1)

The method of claim 1, wherein the instruction provides an alert relating to the high level language API command when processing the high level language API command.

### Claim 6 (depends on 1)

The method of claim 1, wherein the metadata comprises an instruction keyword followed by details of the high level language API command, and determining whether the metadata includes an instruction to be applied to the high level language API command, comprising scanning the metadata to determine whether a keyword identified in the metadata matches the instruction keyword.

### Claim 7 (depends on 4)

The method of claim 4, wherein a command name is a verb and a specified parameter is an adverb or a keyword on which the verb acts.

### Claim 8 (depends on 1)

The method of claim 1, wherein the instruction applied to the high level language API command includes an instruction keyword identifying the instruction in relation to an identified API command.

### Claim 9 (depends on 1)

The method of claim 1, wherein processing the high level language API command further comprises translating the high level language API command to a statement call in a runtime environment language.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
generating metadata relating to the high level language API command in the source code by specifying an instruction for the high level language API command with a selected parameter.

### Claim 11 (depends on 10)

The method of claim 10, wherein the generated metadata is generated by an owner of a runtime environment in which the instructions are applied to control a granularity of the high level language API command used in the runtime environment.

### Claim 12

A computer system for instructing the use of application programming interface (API) commands in a runtime environment, comprising:
one or more processors, one or more computer-readable memories, one or more computer-readable tangible storage medium, and program instructions stored on at least one of the one or more tangible storage medium for execution by at least one of the one or more processors via at least one of the one or more memories, wherein the computer system is capable of performing a method comprising:
receiving, by a computer processor, a source code with a high level language API command;
accessing, by a computer processor, metadata for the source code;
applying, by a computer processor, an instruction included in the metadata to the high level language API command; and
processing, by a computer processor, the high level language API command to a low level code using a command translator based, at least in part, on the metadata.

### Claim 13 (depends on 12)

The computer system of claim 12, further comprising a metadata store of metadata provided for the source code including instructions to be applied to API commands.

### Claim 14 (depends on 12)

The computer system of claim 12, wherein the instruction applied to the high level language API command includes allowing or disallowing the high level language API command, or issuing a warning message relating to some, but not all, parameters of the high level language API command.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein disallowing the high level language API command instructs the command translator not to translate the high level language API command resulting in no valid code in the runtime environment for the API command, and wherein allowing the high level language API command instructs the command translator to activate a switched off API command in the source code resulting in a valid code in the runtime environment for the high level language API command.

### Claim 16 (depends on 14)

The computer system of claim 14, wherein issuing a warning message relating to some, but not all, parameters of the high level language API command instructs the command translator to process the high level language API command as normal resulting in a valid code in the runtime environment for the high level language API command.

### Claim 17 (depends on 12)

The computer system of claim 12, wherein the instruction provides an alert relating to the high level language API command when processing the high level language API command.

### Claim 18 (depends on 12)

The computer system of claim 12, further comprising:
generating metadata relating to the high level language API command in the source code by specifying an instruction for the high level language API command with a selected parameter.

### Claim 19 (depends on 12)

The computer system of claim 12, wherein a command processing component translates an API command to a statement call in a runtime environment language.

### Claim 20

A computer program product for instructing the use of application programming interface (API) commands in a runtime environment, comprising:
one or more computer-readable storage media and program instructions stored on at least one of the one or more tangible storage media, the program instructions executable by a processor to cause the processor to perform a method comprising:
receiving, by a computer processor, a source code with a high level language API command;
accessing, by a computer processor, metadata for the source code;
applying, by a computer processor, an instruction included in the metadata to the high level language API command; and
processing, by a computer processor, the high level language API command to a low level code using a command translator based, at least in part, on the metadata.
