Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Latest commit

 

History

History
57 lines (45 loc) · 755 Bytes

README.md

File metadata and controls

57 lines (45 loc) · 755 Bytes

users-service

CRUD service for clients and its users

API

clients

create

Request:

POST /v1/clients

{"id": "test"}

Response created:

201 CREATED
Location: /v1/clients/test

Response client already exists:

409 CONFLICT

{"message":"client already exists"}

users

create

Request:

POST /v1/clients/{{clientID}}/users

{"full_name": "My User", "names": ["My", "User"], "email":"my.user@parfy.io"}

Response created:

201 CREATED
Location: /v1/clients/{{clientID}}/users/{{userID}}

Errorcases: //TBD

internal

alive

Request:

GET /v1/internal/alive

Response:

200 OK 

{"alive":true}