app.cybrid.cybrid_api_id.client.apis.OrganizationApplicationsApi.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cybrid-api-id-kotlin Show documentation
Show all versions of cybrid-api-id-kotlin Show documentation
Auto-generated Cybrid SDK for Kotlin
package app.cybrid.cybrid_api_id.client.apis
import app.cybrid.cybrid_api_id.client.infrastructure.CollectionFormats.*
import retrofit2.http.*
import retrofit2.Response
import okhttp3.RequestBody
import app.cybrid.cybrid_api_id.client.models.ApplicationListIdpModel
import app.cybrid.cybrid_api_id.client.models.ApplicationWithSecretIdpModel
import app.cybrid.cybrid_api_id.client.models.ErrorResponseIdpModel
import app.cybrid.cybrid_api_id.client.models.PostOrganizationApplicationIdpModel
interface OrganizationApplicationsApi {
/**
* Create organization application
* Create an organization OAuth2 application. Required scope: **organization_applications:execute**
* Responses:
* - 201: organization application created
*
* @param postOrganizationApplicationIdpModel
* @return [ApplicationWithSecretIdpModel]
*/
@POST("api/organization_applications")
suspend fun createOrganizationApplication(@Body postOrganizationApplicationIdpModel: PostOrganizationApplicationIdpModel): Response
/**
* Delete organization application
* Deletes an application.Required scope: **organization_applications:execute**
* Responses:
* - 204: Application disacarded
* - 401: Unauthorized - Authentication failed,
* - 403: Invalid scope
* - 404: application not found
*
* @param clientId Identifier for the application.
* @return [Unit]
*/
@DELETE("api/organization_applications/{client_id}")
suspend fun deleteOrganizationApplication(@Path("client_id") clientId: kotlin.String): Response
/**
* List organization applications
* Retrieve a list of organization OAuth2 applications. Required scope: **organizations:read**
* Responses:
* - 200: list organization applications
*
* @param page The page index to retrieve. (optional)
* @param perPage The number of entities per page to return. (optional)
* @return [ApplicationListIdpModel]
*/
@GET("api/organization_applications")
suspend fun listOrganizationApplications(@Query("page") page: java.math.BigDecimal? = null, @Query("per_page") perPage: java.math.BigDecimal? = null): Response
}