Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // POST /api/v1/login
- // payload:
- {
- username: “danillashin”,
- password: “mypass”,
- };
- // result:
- {
- "success": true,
- "code": 200,
- "data":
- {
- token: "sdnv93qwq9efu0q23npAE9FSYDVB",
- user: {
- id: 1,
- username: “danillashin”,
- encryptedMnemonics: [
- {
- isMain: true,
- address: “Mx...”,
- data: “...”
- }
- ],
- }
- },
- "message": ""
- };
- // POST /api/v1/register
- // payload:
- {
- username: “danillashin”,
- password: “mypass”,
- email: “danil-lashin@ya.ru”,
- phone: “+7...”,
- encryptedMnemonic: {
- isMain: true,
- address: “Mx...”,
- data: “...”
- }
- };
- // result:
- {
- "success": true,
- "code": 201,
- "data":{
- confirmations: [
- {
- type: "sms",
- endpoint: "/api/v1/confirmation/7815696ecbf1c96e6894b779456d330e"
- },
- {
- type: "email",
- endpoint: "/api/v1/confirmation/fw34hsd9fahppqwdfhqp49fhgpsaifuh"
- }
- ]
- },
- "message": ""
- };
- // GET /api/v1/profile
- // result:
- {
- "success": true,
- "code": 200,
- "data":{
- user_profile: {
- id: 1,
- username: “danillashin”,
- email: “danil-lashin@ya.ru”,
- phone: “+7...”
- language: “en”
- }
- },
- "message": ""
- };
- // PUT /api/v1/profile
- // payload:
- {
- username: “danillashin”,
- password: “mypass”,
- email: “danil-lashin@ya.ru”,
- phone: “+7...”
- language: “en”,
- };
- // result:
- {
- "success": true,
- "code": 200,
- "data":[],
- "message": ""
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement