From 091ae1d340ac2758ca86db36f629380624940867 Mon Sep 17 00:00:00 2001 From: daffainfo Date: Tue, 2 Nov 2021 18:05:36 +0700 Subject: [PATCH] Adding Micro User Service API --- Art-Design/README.md | 1 + Authentication/Micro User Service.md | 61 ++++++++++++++++++++++++++++ Authentication/README.md | 5 +++ README.md | 1 + 4 files changed, 68 insertions(+) create mode 100644 Authentication/Micro User Service.md create mode 100644 Authentication/README.md diff --git a/Art-Design/README.md b/Art-Design/README.md index d9c8403..1f28493 100644 --- a/Art-Design/README.md +++ b/Art-Design/README.md @@ -5,4 +5,5 @@ List of Art and Design API * [Cooper Hewitt](Cooper%20Hewitt.md) * [Dribbble](Dribbble.md) * [Europeana](Europeana.md) +* [IconFinder](IconFinder.md) * [Rijksmuseum](Rijksmuseum.md) \ No newline at end of file diff --git a/Authentication/Micro User Service.md b/Authentication/Micro User Service.md new file mode 100644 index 0000000..69ef86d --- /dev/null +++ b/Authentication/Micro User Service.md @@ -0,0 +1,61 @@ +# [Micro User Service](https://m3o.com/user) + +## __Description__ +User management and authentication + +## __Example Request__ +* Curl +``` +curl "https://api.m3o.com/v1/user/Read" \ +-H "Content-Type: application/json" \ +-H "Authorization: Bearer {{token}}" \ +-d '{ + "id": "usrid-1" +}' +``` + +* Raw +``` +POST /v1/user/Read HTTP/1.1 +Host: api.m3o.com +Content-Type: application/json +Authorization: Bearer {{token}} +Content-Length: 21 + +{ + "id": "usrid-1" +} +``` + +## __Response__ +* Success +``` +{ + "account": { + "id": "fdf34f34f34-f34f34-f43f43f34-f4f34f", + "username": "usrname-1", + "email": "joe@example.com", + "created": "1623677579", + "updated": "1623677579" + } +} +``` +* Error +``` +{ + "Id":"v1", + "Code":401, + "Detail":"Unauthorized", + "Status":"Unauthorized" +} +``` + +## __Regex__ +``` +[A-Za-z0-9]{48} +``` + +## __Example API key__ +``` +YQ6wba4vACaht9CUK9k5N7QxV2ieRPJ396g94vkWSYauYmch +``` diff --git a/Authentication/README.md b/Authentication/README.md new file mode 100644 index 0000000..e654132 --- /dev/null +++ b/Authentication/README.md @@ -0,0 +1,5 @@ +# Authentication +List of Authentication API + +## Index +* [Micro User Service](Micro%20User%20Service.md) \ No newline at end of file diff --git a/README.md b/README.md index 04aad83..76a1d0c 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Detailed information about API * [Cooper Hewitt](Art-Design/Cooper%20Hewitt.md) * [Dribbble](Art-Design/Dribbble.md) * [Europeana](Art-Design/Europeana.md) + * [IconFinder](Art-Design/IconFinder.md) * [Rijksmuseum](Art-Design/Rijksmuseum.md) ## References