Notes API
API Endpoint
http://localhost:5000Accounts ¶
Create an account ¶
Headers
Content-Type: application/jsonBody
{
+Notes API Notes API
API Endpoint
http://localhost:5000Accounts ¶
Create an account ¶
POST http://localhost:5000/userRequestsHeaders
Content-Type: application/json
Body
{
"username": "babar",
"email": "michel@seed-it.eu",
"password": "tortue"
@@ -79,7 +79,29 @@
"type": "number"
}
}
-}
Authenticate a userPOST/user/login
Notes ¶
Notes ¶
GET http://localhost:5000/notesRequestsHeaders
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
ResponsesHeaders
Content-Type: application/json
Body
[
+}
Authenticate a userPOST/user/login
Get User Info ¶
Receive the username and email from the currently logged in user
+GET http://localhost:5000/user/meRequestsHeaders
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
ResponsesHeaders
Content-Type: application/json
Body
{
+ "user": {
+ "username": "Jean",
+ "email": "abc@def.ghi"
+ }
+}
Schema
{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "user": {
+ "type": "object",
+ "properties": {
+ "username": {
+ "type": "string"
+ },
+ "email": {
+ "type": "string"
+ }
+ }
+ }
+ }
+}
Get User InfoGET/user/me
Notes ¶
Notes ¶
GET http://localhost:5000/notesRequestsHeaders
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
ResponsesHeaders
Content-Type: application/json
Body
[
{
"title": "Kotlin",
"tags": [
@@ -217,7 +239,7 @@
"type": "array"
}
}
-}
Generated by aglio on 21 Apr 2020