Adding Micro User Service API
parent
9b1ff40700
commit
091ae1d340
|
@ -5,4 +5,5 @@ List of Art and Design API
|
||||||
* [Cooper Hewitt](Cooper%20Hewitt.md)
|
* [Cooper Hewitt](Cooper%20Hewitt.md)
|
||||||
* [Dribbble](Dribbble.md)
|
* [Dribbble](Dribbble.md)
|
||||||
* [Europeana](Europeana.md)
|
* [Europeana](Europeana.md)
|
||||||
|
* [IconFinder](IconFinder.md)
|
||||||
* [Rijksmuseum](Rijksmuseum.md)
|
* [Rijksmuseum](Rijksmuseum.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
|
||||||
|
```
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Authentication
|
||||||
|
List of Authentication API
|
||||||
|
|
||||||
|
## Index
|
||||||
|
* [Micro User Service](Micro%20User%20Service.md)
|
|
@ -29,6 +29,7 @@ Detailed information about API
|
||||||
* [Cooper Hewitt](Art-Design/Cooper%20Hewitt.md)
|
* [Cooper Hewitt](Art-Design/Cooper%20Hewitt.md)
|
||||||
* [Dribbble](Art-Design/Dribbble.md)
|
* [Dribbble](Art-Design/Dribbble.md)
|
||||||
* [Europeana](Art-Design/Europeana.md)
|
* [Europeana](Art-Design/Europeana.md)
|
||||||
|
* [IconFinder](Art-Design/IconFinder.md)
|
||||||
* [Rijksmuseum](Art-Design/Rijksmuseum.md)
|
* [Rijksmuseum](Art-Design/Rijksmuseum.md)
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
Loading…
Reference in New Issue