Apache Struts resource API

Generic RESTful resource exposed by the Struts REST plugin

Operations 7

GET /{resource} List resources (index) #
POST /{resource} Create a new resource #
GET /{resource}/new Render form for a new resource (editNew) #
GET /{resource}/{id} Show a single resource by id #
PUT /{resource}/{id} Update a single resource (update) #
DELETE /{resource}/{id} Delete a single resource (destroy) #
GET /{resource}/{id}/edit Render edit form for an existing resource (edit) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/apache-struts-resource-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

apache-struts-resource-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Apache Struts REST Plugin Resource API
  description: The Apache Struts 2 REST Plugin provides RESTful resource-based mapping of HTTP requests to controller actions. URLs follow a convention-based pattern mapping HTTP verbs and URL shapes to controller methods (index, show, create, update, destroy, edit, editNew). This OpenAPI describes the generic URL convention applied to any resource exposed through the plugin.
  version: 1.0.0
  license:
    name: Apache License 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  contact:
    name: Apache Struts
    url: https://struts.apache.org/plugins/rest/
servers:
- url: http://{host}/{context}
  description: Application server hosting the Struts REST plugin
  variables:
    host:
      default: my.company.com
    context:
      default: myapp
security:
- strutsInterceptor: []
tags:
- name: resource
  description: Generic RESTful resource exposed by the Struts REST plugin
paths:
  /{resource}:
    parameters:
    - $ref: '#/components/parameters/Resource'
    get:
      tags:
      - resource
      summary: List resources (index)
      operationId: indexResources
      responses:
        '200':
          description: Resource collection
          content:
            application/json: {}
            application/xml: {}
            application/xhtml+xml: {}
    post:
      tags:
      - resource
      summary: Create a new resource
      operationId: createResource
      requestBody:
        required: true
        content:
          application/json: {}
          application/x-www-form-urlencoded: {}
      responses:
        '201':
          description: Resource created
  /{resource}/new:
    parameters:
    - $ref: '#/components/parameters/Resource'
    get:
      tags:
      - resource
      summary: Render form for a new resource (editNew)
      operationId: editNewResource
      responses:
        '200':
          description: New-resource form representation
  /{resource}/{id}:
    parameters:
    - $ref: '#/components/parameters/Resource'
    - $ref: '#/components/parameters/Id'
    get:
      tags:
      - resource
      summary: Show a single resource by id
      operationId: showResource
      responses:
        '200':
          description: Single resource representation
          content:
            application/json: {}
            application/xml: {}
            application/xhtml+xml: {}
        '404':
          description: Not found
    put:
      tags:
      - resource
      summary: Update a single resource (update)
      operationId: updateResource
      requestBody:
        required: true
        content:
          application/json: {}
          application/x-www-form-urlencoded: {}
      responses:
        '200':
          description: Resource updated
    delete:
      tags:
      - resource
      summary: Delete a single resource (destroy)
      operationId: destroyResource
      responses:
        '204':
          description: Resource deleted
  /{resource}/{id}/edit:
    parameters:
    - $ref: '#/components/parameters/Resource'
    - $ref: '#/components/parameters/Id'
    get:
      tags:
      - resource
      summary: Render edit form for an existing resource (edit)
      operationId: editResource
      responses:
        '200':
          description: Edit form representation
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      description: Resource identifier
      schema:
        type: string
    Resource:
      name: resource
      in: path
      required: true
      description: The resource name (mapped to a Struts controller)
      schema:
        type: string
  securitySchemes:
    strutsInterceptor:
      type: http
      scheme: basic
      description: The REST plugin does not define authentication itself; authentication is typically applied via standard Struts interceptors (HTTP Basic, form login, container-managed, etc.).