Spring Data Association API

The Association API from Spring Data — 1 operation(s) for association.

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/spring-data-association-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 email required.

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

OpenAPI Specification

spring-data-association-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Spring Data REST Association API
  description: Spring Data REST exposes Spring Data repositories as hypermedia-driven RESTful resources following the HATEOAS constraint. It provides automatic endpoint generation for CRUD operations, pagination, sorting, projections, and custom query endpoints derived from repository methods.
  version: 4.3.0
  contact:
    name: Spring Team
    url: https://spring.io/projects/spring-data-rest
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://localhost:8080
  description: Default local server
tags:
- name: Association
paths:
  /{repository}/{id}/{association}:
    get:
      operationId: getAssociation
      summary: Get Resource Association
      description: Returns the associated resource(s) for a given relationship
      tags:
      - Association
      parameters:
      - name: repository
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: association
        in: path
        required: true
        schema:
          type: string
        description: Association name (e.g., address, orders)
      responses:
        '200':
          description: Associated resource(s)
          content:
            application/hal+json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Resource'
                - $ref: '#/components/schemas/PagedResource'
        '404':
          description: Resource or association not found
    put:
      operationId: setAssociation
      summary: Set Resource Association
      description: Replaces the association links for a resource
      tags:
      - Association
      parameters:
      - name: repository
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: association
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          text/uri-list:
            schema:
              type: string
              description: Newline-separated list of resource URIs
      responses:
        '204':
          description: Association updated
        '404':
          description: Resource not found
    delete:
      operationId: deleteAssociation
      summary: Delete Resource Association
      description: Removes all association links for a resource
      tags:
      - Association
      parameters:
      - name: repository
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: association
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Association deleted
        '404':
          description: Resource not found
components:
  schemas:
    Resource:
      type: object
      properties:
        _links:
          $ref: '#/components/schemas/Links'
      additionalProperties: true
    PagedResource:
      type: object
      properties:
        _embedded:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/Resource'
        _links:
          $ref: '#/components/schemas/Links'
        page:
          $ref: '#/components/schemas/PageMetadata'
    PageMetadata:
      type: object
      properties:
        size:
          type: integer
          description: Number of items per page
        totalElements:
          type: integer
          description: Total number of items
        totalPages:
          type: integer
          description: Total number of pages
        number:
          type: integer
          description: Current page number (zero-based)
    Links:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/Link'
    Link:
      type: object
      properties:
        href:
          type: string
          description: The URI of the link
        templated:
          type: boolean
          description: Whether the href is a URI template