| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| |
| package org.apache.directory.scim.protocol; |
| |
| import io.swagger.v3.oas.annotations.Operation; |
| import io.swagger.v3.oas.annotations.media.Content; |
| import io.swagger.v3.oas.annotations.media.Schema; |
| import io.swagger.v3.oas.annotations.responses.ApiResponse; |
| import io.swagger.v3.oas.annotations.tags.Tag; |
| import jakarta.ws.rs.GET; |
| import jakarta.ws.rs.Path; |
| import jakarta.ws.rs.Produces; |
| import jakarta.ws.rs.core.Context; |
| import jakarta.ws.rs.core.MediaType; |
| import jakarta.ws.rs.core.Response; |
| import jakarta.ws.rs.core.Response.Status; |
| import jakarta.ws.rs.core.UriInfo; |
| import org.apache.directory.scim.spec.schema.ServiceProviderConfiguration; |
| |
| import static org.apache.directory.scim.protocol.Constants.SCIM_CONTENT_TYPE; |
| |
| //@formatter:off |
| /** |
| * From SCIM Protocol Specification, section 4, page 73 |
| * |
| * @see <a href="https://tools.ietf.org/html/rfc7644#section-4">Scim spec section 4</a> |
| * |
| * /ServiceProviderConfig |
| * An HTTP GET to this endpoint will return a JSON structure that |
| * describes the SCIM specification features available on a service |
| * provider. This endpoint SHALL return responses with a JSON object |
| * using a "schemas" attribute of |
| * "urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig". |
| * The attributes returned in the JSON object are defined in |
| * Section 5 of [RFC7643]. An example representation of SCIM service |
| * provider configuration may be found in Section 8.5 of [RFC7643]. |
| * |
| * @author chrisharm |
| * |
| */ |
| //@formatter:on |
| |
| @Path("ServiceProviderConfig") |
| @Tag(name="SCIM-Configuration") |
| public interface ServiceProviderConfigResource { |
| |
| @GET |
| @Produces({Constants.SCIM_CONTENT_TYPE, MediaType.APPLICATION_JSON}) |
| @Operation(description="Get Service Provider Configuration") |
| @ApiResponse(content = @Content(mediaType = SCIM_CONTENT_TYPE, |
| schema = @Schema(implementation = ServiceProviderConfiguration.class))) |
| default Response getServiceProviderConfiguration(@Context UriInfo context) { |
| return Response.status(Status.NOT_IMPLEMENTED).build(); |
| } |
| } |