---
openapi: 3.0.3
info:
  title: MPC Api 1.0
  description: MPC Api's
  version: 1.0.0
servers:
- url: https://virtserver.swaggerhub.com/AMANBISHT_1/MPC/1.0.0
  description: SwaggerHub API Auto Mocking
- url: http://localhost:8080/api
  description: Localhost
  variables:
    environment:
      default: Development
- url: http://aasha.mobilepricecards.com/api
  description: Aasha Server
  variables:
    environment:
      default: Aasha
paths:
  /test_api/:
    get:
      tags:
      - Test Api
      summary: To check a test api
      operationId: apicheck
      responses:
        "201":
          description: Successful operation
        "404":
          description: Page not found
  /login:
    post:
      tags:
      - Login Api
      summary: Api for login
      description: User can be login to app using store code and password and device Id is used to maintain single login
      operationId: loginapi
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/login_body'
        required: true
      responses:
        "200":
          description: successful operation
        "400":
          description: Invalid status value
  /create_screen:
    post:
      tags:
      - Create Screen Api
      summary: Api to create screen
      description: Multiple status values can be provided with comma separated strings
      operationId: createscreenapi
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/create_screen_body'
        required: true
      responses:
        "200":
          description: successful operation
        "400":
          description: Invalid tag value
  /get_cards:
    post:
      tags:
      - Get Cards Api
      summary: Api to get cards
      description: ""
      operationId: getcardsapi
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/get_cards_body'
        required: true
      responses:
        "200":
          description: successful operation
        "400":
          description: Invalid tag value
  /delete_cards:
    post:
      tags:
      - Delete Cards Api
      summary: Api to delete cards
      description: ""
      operationId: deletecardapi
      responses:
        "200":
          description: successful operation
        "400":
          description: Invalid tag value
  /general:
    post:
      tags:
      - General Api
      summary: Api to all data
      description: ""
      operationId: generalapi
      responses:
        "200":
          description: successful operation
        "400":
          description: Invalid tag value
components:
  schemas:
    login_body:
      type: object
      properties:
        store_code:
          type: string
        password:
          type: string
          format: password
        device_name:
          type: string
    create_screen_body:
      type: object
      properties:
        idstore:
          type: integer
        isle:
          type: integer
        shelf:
          type: integer
        position:
          type: integer
        idproductStatic:
          type: integer
        buildVersion:
          type: string
        mac_address:
          type: string
        deviceName:
          type: string
        device_id:
          type: string
        screen_width:
          type: string
        screen_height:
          type: string
        sound:
          type: string
        gps:
          type: string
        deviceType:
          type: string
        deviceToken:
          type: string
        imei:
          type: string
    get_cards_body:
      type: object
      properties:
        pricecardid:
          type: integer
        imei:
          type: integer
