Created
June 17, 2023 00:00
-
-
Save juanchehin/2d1b29858f80926abaa9f52cfe5df245 to your computer and use it in GitHub Desktop.
Ejemplo de JSON para tomar notas de endpoints de API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
api_endpoints: { | |
sign_up: { | |
url: 'mywebsite.com/auth/sign_up', | |
method: 'POST', | |
shape: { | |
username: { type: String, required: true, min: 6, max: 18 }, | |
password: { type: String, required: true, min: 6: max 32 }, | |
referralCode: { type: String, required: true, min: 64, max: 64 } | |
} | |
}, | |
sign_in: { | |
url: 'mywebsite.com/auth/sign_in', | |
method: 'POST', | |
shape: { | |
username: { type: String, required: true, min: 6, max: 18 }, | |
password: { type: String, required: true, min: 6: max 32 } | |
} | |
}, | |
reset_password: { | |
url: 'mywebsite.com/auth/reset', | |
method: 'POST', | |
shape: { | |
username: { type: String, required: true, min: 6, max: 18 }, | |
password: { type: String, required: true, min: 6: max 32 }, | |
newPassword: { type: String, required: true, min: 6: max 32 } | |
} | |
} | |
}, | |
features: { | |
comments: {}, | |
uploads: { | |
file_sharing: {} | |
}, | |
}, | |
integrations: { | |
oath: { | |
twitter: {}, | |
facebook: {}, | |
youtube: {} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment