A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/endpoints/docs/frameworks/java/endpoints_tool below:

Cloud Endpoints Frameworks for App Engine command-line tool

Cloud Endpoints Frameworks for App Engine command-line tool

Stay organized with collections Save and categorize content based on your preferences.

This page describes how to generate a client library from your backend server API by using the Endpoints Frameworks command-line tool. Any Java or Android app can use this library to call the API.

You can generate client library bundles that allow applications to access your API using the Endpoints Frameworks command-line tool. When you generate a client library, the Endpoints Frameworks command-line tool automatically generates a Discovery document that describes the surface of your API.

To get the Endpoints Frameworks command-line tool, download endpoints-framework-tools from the Maven Central Repository. After you extract the contents of the zip file, the tool is in the endpoints-framework-tools-2.2.1/bin/ directory.

Generating a client library bundle from an API

You can use the Endpoints Frameworks command-line tool to generate the following types of client bundles:

If you are using the client library with an Android app, we recommend that you use a Gradle client bundle.

Command-line syntax

Before you use the Endpoints Frameworks command-line tool, you must build your backend project because this tool requires compiled binaries. You can optionally supply the --war= option pointing to the build target output directory containing the WEB-INF directory and compiled java classes if you don't want to use the default (--war="./war").

The basic syntax is as follows:

/path-to/endpoints-framework-tools-2.2.1/bin/endpoints-framework-tools \
    get-client-lib OPTIONS CLASS_NAME

where:

For example:

/path-to/endpoints-framework-tools-2.2.1/bin/endpoints-framework-tools \
    get-client-lib --war=target/echo-1.0-SNAPSHOT -bs gradle com.example.echo.Echo

where target/echo-1.0-SNAPSHOT is the relative or absolute path to the target build directory containing WEB-INF and the compiled backend classes.

Note: If your API is implemented from multiple classes, specify each of them separated by a space. Options

You can use the following options:

Option name Description Example build-system Lets you specify which type of client bundle should be produced. Specify gradle for a Gradle client bundle for Android, maven for a Maven client bundle, or default (or simply omit this option) for a bundle that contains only the dependency libraries and source jar. --build-system=gradle
-bs gradle war Sets the path to the build target directory WEB-INF that contains appengine-web.xml and other metadata.
Default: ./war. --war=target/echo-1.0-SNAPSHOT
-w target/echo-1.0-SNAPSHOT output Sets the directory where the output is written to.
Default: the directory the tool is invoked from. --output=/mydir
-o /mydir Supported client platforms

The following platforms are supported in the client bundle produced by the Endpoints Frameworks command-line tool:

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The Endpoints Frameworks command-line tool generates client library bundles, enabling Java or Android apps to access backend server APIs."],["This tool automatically generates a Discovery document that outlines the API's structure, which is crucial for client interactions."],["Client library bundles can be generated in Maven, Gradle, or default formats, with each format catering to different project setups and providing necessary dependencies and build instructions."],["The command-line tool requires compiled backend project binaries and allows options for specifying the build system, war directory, and output location, making customization easy."],["The generated client libraries are compatible with Java 7+, Android 1.6+, and App Engine, ensuring wide applicability."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4