All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.agent.api.CSPAPI Maven / Gradle / Ivy

There is a newer version: 4.36
Show newest version
package com.wavefront.agent.api;

import com.google.common.net.HttpHeaders;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

public interface CSPAPI {
  @POST
  @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
  @Path("/csp/gateway/am/api/auth/api-tokens/authorize")
  Response getTokenByAPIToken(
      @FormParam("grant_type") final String grantType,
      @FormParam("api_token") final String apiToken);

  @POST
  @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
  @Path("csp/gateway/am/api/auth/authorize")
  Response getTokenByClientCredentialsWithOrgId(
      @HeaderParam(HttpHeaders.AUTHORIZATION) final String auth,
      @FormParam("grant_type") final String grantType,
      @FormParam("orgId") final String orgId);

  @POST
  @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
  @Path("csp/gateway/am/api/auth/authorize")
  Response getTokenByClientCredentials(
      @HeaderParam(HttpHeaders.AUTHORIZATION) final String auth,
      @FormParam("grant_type") final String grantType);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy