Apache Struts resource API
Generic RESTful resource exposed by the Struts REST plugin
Generic RESTful resource exposed by the Struts REST plugin
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/apache-struts-resource-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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: 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.).