Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "paths": {
- "/api/auth/signin": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "Sign-in user",
- "description": " Sign-in user phoneNumber",
- "produces":"application/json",
- "parameters": [
- {
- "in":"body",
- "name": "Signin",
- "description": "Signin request body",
- "required": "true",
- "schema": {
- "in":"body",
- "type": "object",
- "properties": {
- "phoneNumber": {
- "type": "string"
- }
- }
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Successful response object"
- },
- "400": {
- "description": "Bad request, check keys and values"
- },
- "500": {
- "description": "Internal server error"
- }
- }
- }
- },
- "/api/auth/login": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "Login user",
- "description": "Login user with phoneNumber, verificationCode, deviceId, osType, deviceToken",
- "consumes": "application/x-www-form-urlencoded",
- "produces": "application/x-www-form-urlencoded",
- "parameters": [
- {
- "in": "body",
- "name": "Login",
- "description": "Login request body",
- "required": "true",
- "produces": "application/json",
- "schema": {
- "type": "object",
- "properties": {
- "phoneNumber": {
- "type": "string"
- },
- "osType": {
- "type": "number"
- },
- "deviceId": {
- "type": "string"
- },
- "verificationCode": {
- "type": "number"
- }
- }
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Successful response object"
- },
- "400": {
- "description": "Bad request, check keys and values"
- },
- "500": {
- "description": "Internal server error"
- }
- }
- }
- }
- }
- }[![ответ Swagger**текст, выделенный жирным шрифтом**][1]][1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement