Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 922 Bytes

README.md

File metadata and controls

63 lines (43 loc) · 922 Bytes

svc_user

Description

This service is a simple user service that is used to manage users.

Base URL

http://svc_user.bloefish.local:4001/

RPC transport

Base URL

http://svc_user.bloefish.local:4001/rpc/<version>/<endpoint>

Versions

  • 2025-02-12 - Initial version

Endpoints

get_user_by_id

Gets a user by their user ID.

Contract

interface Request {
	user_id: string;
}

interface Response {
	user: {
		id: string;
		default_user: boolean;
		created_at: string;
		updated_at: string | null;
		deleted_at: string | null;
	}
}

get_or_create_default_user

Get the default user for the platform. If the user does not exist, it will be created.

Contract

type Request = null;

interface Response {
	user: {
		id: string;
		default_user: boolean;
		created_at: string;
		updated_at: string | null;
		deleted_at: string | null;
	}
}