TYPO3 Logo
RESTful Api for TYPO3
  • About the extension
    • Features
    • Limitations
    • Dependencies
    • Contribute
    • Support further development
  • What is a RESTful Api?
  • Installation
  • Screenshots
  • Quick Start
  • Routing & Requests
    • Registering Endpoints
    • Routing by method-name
    • Routing by custom Routes
    • Variables
  • Creating Responses
    • Simple Responses
    • Error Responses
    • Headers and CORS
  • Annotations
    • @Api\Endpoint
    • @Api\Access
    • @Api\AutoMerge
    • @Api\Cache
    • @Api\Distiller
    • @Api\Example
    • @Api\Label
    • @Api\MaxAge
    • @Api\IncludeHidden
    • @Api\Json
    • @Api\Route
    • @Api\Security\CheckInjections
    • @Api\Security\CheckLocked
    • @Api\Security\MaxRequestsPerMinute
    • @Api\Upload
    • @Api\Localize
    • Custom Annotations
  • Restricting Access
    • Restricting Access with a custom method
    • Restricting access by sending a 403 response
  • Authentication
    • HTTP Basic Auth
    • JSON Web Token (JWT)
    • Cookies
  • File Uploads
  • Localization & Translation
    • Background infos
  • Get hidden records
  • Kickstarter
  • Documenting your Api
  • Examples & Recipes
    • Example Api Endpoint
    • Rendering Content-Elements
    • Creating Content-Elements (tt_content)
    • Rendering a page
    • Raw Content data
    • Getting settings
    • jQuery
      • Basic requests
      • Authentication
      • Uploading Files
    • Axios
      • Basic requests
      • Authentication
      • Uploading Files
    • Modern JavaScript (ES6+)
      • Basic requests
      • Authentication
      • Uploading Files
    • Legacy JavaScript (IE)
      • Basic requests
      • Authentication
      • Uploading Files
  • Configuration
    • TypoScript Setup
    • YAML Configuration
    • Extension Manager Configuration
    • Frontend-user configuration
  • Known Problems
  • Change log
  • Sitemap

PAGE CONTENTS

  • Annotations
  1. Start
  2. Annotations
View source How to edit Edit on GitHub

Annotations¶

  • @Api\Endpoint
    • Mark a class as endpoint for the TYPO3 RestAPi
    • Marking individual Classes as Endpoint
    • Override the path segment / class name
  • @Api\Access
    • Restricting access to your endpoint
    • Examples and details?
  • @Api\AutoMerge
    • Disabling automatic merging of JSON data with a Model
  • @Api\Cache
    • Enable caching for a TYPO3 RestAPi endpoint
    • Handling the cache yourself
  • @Api\Distiller
    • Dehydrate the JSON-result before returning it to the client
  • @Api\Example
    • Add example data to your documentation
  • @Api\Label
    • Add custom label to backend module
  • @Api\MaxAge
    • Sends Cache-Control headers for a TYPO3 RestAPi endpoint
    • Handling the Cache-Control header yourself
  • @Api\IncludeHidden
    • Retrieve hidden records and relations from the database.
  • @Api\Json
    • Control how your TYPO3 RestAPi renders the JSON result
  • @Api\Route
    • Use custom routing for your TYPO3 RestAPI endpoint
  • @Api\Security\CheckInjections
    • Check incoming request for SQL Injections
    • Globally activating an injection test
  • @Api\Security\CheckLocked
    • Check if IP was locked
    • (Un)locking an IP manually
  • @Api\Security\MaxRequestsPerMinute
    • Limiting number of requests to an endpoint
  • @Api\Upload
    • Control where files are uploaded to in your TYPO3 RestAPi
  • @Api\Localize
    • Enable/disable localization (translation) of data
  • Custom Annotations
    • Adding custom annotations to your TYPO3 RestApi endpoints
  • Previous
  • Next

Last rendered: Jan 12, 2023 22:14

TYPO3 Theme 4.6.2

© Copyright by 99°, David Bascom