Coder Social home page Coder Social logo

reform-api-standards's Introduction

Reform API standards

Build Status codecov Download

This library contains a set of Spring Boot components used across HMCTS APIs.

SensitiveHeadersRequestTraceFilter

Removes sensitive headers before they are added to Spring trace.
In order to use this filter declare the following Bean in your app:

@Bean
public SensitiveHeadersRequestTraceFilter requestTraceFilter(Set<Include> includes) {
    return new SensitiveHeadersRequestTraceFilter(includes, <your_custom_headers_go_here>);
}

@APIDeprecated

An annotation for controller classes and methods that adds warning headers to the responses generated by the API.

A typical usage would be to add the @APIDeprecated annotation to a method as in the following example:

@APIDeprecated(
    name = "Deprecated Endpoint",
    expiryDate = "2018-06-30",
    docLink = "https://example.org/docs/foo",
    note = "Some note."
)
public Model someAction() {
    // request handling code ...
}

The annotation has the attributes that are used for forming a Warning header.

  • name for friendly name of the endpoint,
  • expiryDate for the date which the endpoint will cease to serve,
  • docLink for the details of documentation regarding the API updates
  • note for optional notes to the clients

A sample of the Warning header is as follows:

The UserProfileEndpoint is deprecated and will be removed by 2018-06-30. Please see https://example.org/docs/foo for details. Some note.

reform-api-standards's People

Contributors

calinmarina avatar jasonpaige avatar jenkins-reform-hmcts avatar karoljastrzebski avatar njrich28 avatar renovate[bot] avatar rkondratowicz avatar timja avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reform-api-standards's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/gradle.yml
  • actions/checkout v4
  • actions/setup-java v4
.github/workflows/jitpack_build.yml
  • actions/checkout v4
gradle
build.gradle
  • io.spring.dependency-management 1.1.4
  • org.springframework.boot 2.7.18
  • com.google.guava:guava 33.1.0-jre
  • junit:junit 4.13.2
  • io.rest-assured:rest-assured 3.3.0
  • org.hamcrest:hamcrest-all 1.3
  • javax.inject:javax.inject 1
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 7.6.4

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.