Spring Framework stub
This code was generated by the OpenAPI Generator project. By using the OpenAPI-Spec, you can easily generate an API stub. This is an example of building API stub interfaces in Java using the Spring framework.
The stubs generated can be used in your existing Spring-MVC or Spring-Boot application to create controller endpoints
by adding @Controller classes that implement the interface. Eg:
@Controller
public class PetController implements PetApi {
// implement all PetApi methods
}You can also use the interface to create Spring-Cloud Feign clients.Eg:
@FeignClient(name="pet", url="http://petstore.swagger.io/v2")
public interface PetClient extends PetApi {
}L'endpoint DELETE /user/force permet la suppression physique (hard delete) d'un utilisateur de la base de données.
L'endpoint est automatiquement activé lorsque le déploiement Nomad utilise le namespace secpsc-preprod.
Le template Nomad (psc-secpsc-api.nomad.tpl) configure automatiquement force.delete.enabled=true pour les namespaces :
preprodpsc-preprodsecpsc-preprod
Pour activer cet endpoint en local, définissez la variable d'environnement :
export FORCE_DELETE_ENABLED=trueOu via argument JVM :
java -jar psc-secpsc-api.jar -DFORCE_DELETE_ENABLED=trueEn production, l'endpoint retournera une erreur 403 Forbidden car force.delete.enabled=false par défaut.
| Endpoint | Type | Disponibilité |
|---|---|---|
DELETE /user?nationalId=X |
Soft delete | Tous environnements |
DELETE /user/force?nationalId=X |
Hard delete | Preprod uniquement |