Module ocs_rest_res_client

This library module implements resource handling functions for a REST server in the ocs application.

Copyright © 2016 - 2026 SigScale Global Inc.

Description

This library module implements resource handling functions for a REST server in the ocs application.

Function Index

content_types_accepted/0Provides list of resource representations accepted.
content_types_provided/0Provides list of resource representations available.
head_client/0Body producing function for HEAD /ocs/v1/client requests.
get_clients/2Body producing function for GET /ocs/v1/client requests.
get_client/2Body producing function for GET /ocs/v1/client/{id} requests.
post_client/1Respond to POST /ocs/v1/client and add a new client resource.
patch_client/4Respond to PATCH /ocs/v1/client/{id} request and Updates a existing client's password or attributes.
patch_client1/4*
delete_client/1Respond to DELETE /ocs/v1/client/{address} request and deletes a client resource.
client/1*

Function Details

content_types_accepted/0

content_types_accepted() -> ContentTypes

Provides list of resource representations accepted.

content_types_provided/0

content_types_provided() -> ContentTypes

Provides list of resource representations available.

head_client/0

head_client() -> Result

Body producing function for HEAD /ocs/v1/client requests.

get_clients/2

get_clients(Query, Headers) -> Result

Body producing function for GET /ocs/v1/client requests.

get_client/2

get_client(Id, Query) -> Result

Body producing function for GET /ocs/v1/client/{id} requests.

post_client/1

post_client(RequestBody) -> Result

Respond to POST /ocs/v1/client and add a new client resource.

patch_client/4

patch_client(Id, Etag, ContentType, ReqBody) -> Result

Respond to PATCH /ocs/v1/client/{id} request and Updates a existing client's password or attributes.

patch_client1/4 *

patch_client1(Id, Etag, CType, Operations) -> any()

delete_client/1

delete_client(Id) -> Result

Respond to DELETE /ocs/v1/client/{address} request and deletes a client resource. If the deletion is successful return true.

client/1 *

client(Client) -> Result


Generated by EDoc