Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swagger: '2.0'
- info:
- version: v1
- title: My API
- host: http://rasuldev-001-site28.btempurl.com
- basePath: /
- paths:
- /api/account/register:
- post:
- tags:
- - Account
- summary: >-
- Accepts requests with Content-Type: application/json and body:
- {"email":"my@my.ru", "password": "mypassword"}
- operationId: ApiAccountRegisterPost
- consumes:
- - application/json
- produces:
- - application/json
- parameters:
- - name: registerInfo
- in: body
- required: false
- schema:
- $ref: '#/definitions/RegisterModel'
- responses:
- '201':
- description: User created
- '409':
- description: User created
- schema:
- type: array
- items:
- $ref: '#/definitions/ApiError'
- '/api/account/password/{current}/{newpass}':
- put:
- tags:
- - Account
- summary: Changes password for local user.
- operationId: ApiAccountPasswordByCurrentByNewpassPut
- consumes: []
- produces: []
- parameters:
- - name: current
- in: path
- required: true
- type: string
- - name: newpass
- in: path
- required: true
- type: string
- responses:
- '200':
- description: Success
- '/api/account/forgot/{email}':
- post:
- tags:
- - Account
- operationId: ApiAccountForgotByEmailPost
- consumes: []
- produces: []
- parameters:
- - name: email
- in: path
- required: true
- type: string
- responses:
- '200':
- description: Success
- /api/account/confirm:
- post:
- tags:
- - Account
- operationId: ApiAccountConfirmPost
- consumes: []
- produces: []
- responses:
- '200':
- description: Success
- /api/account/info:
- get:
- tags:
- - Account
- operationId: ApiAccountInfoGet
- consumes: []
- produces: []
- responses:
- '200':
- description: Success
- put:
- tags:
- - Account
- operationId: ApiAccountInfoPut
- consumes:
- - application/json
- - text/json
- - application/json-patch+json
- produces: []
- parameters:
- - name: info
- in: body
- required: false
- schema:
- $ref: '#/definitions/UserInfoModel'
- responses:
- '200':
- description: Success
- /api/Payments/webmoney:
- post:
- tags:
- - Payments
- operationId: ApiPaymentsWebmoneyPost
- consumes: []
- produces: []
- parameters:
- - name: projectId
- in: query
- required: false
- type: integer
- format: int32
- - name: amount
- in: query
- required: false
- type: number
- format: double
- - name: currency
- in: query
- required: false
- type: integer
- format: int32
- enum:
- - 0
- - 1
- - 2
- responses:
- '200':
- description: Success
- /api/PaymentsHandler/webmoney:
- post:
- tags:
- - PaymentsHandler
- operationId: ApiPaymentsHandlerWebmoneyPost
- consumes: []
- produces: []
- parameters:
- - name: transactionId
- in: query
- required: false
- type: integer
- format: int32
- - name: amount
- in: query
- required: false
- type: number
- format: double
- - name: currency
- in: query
- required: false
- type: integer
- format: int32
- enum:
- - 0
- - 1
- - 2
- responses:
- '200':
- description: Success
- '/api/projects/status/{status}':
- get:
- tags:
- - Projects
- summary: ''
- operationId: ApiProjectsStatusByStatusGet
- consumes: []
- produces:
- - application/json
- parameters:
- - name: status
- in: path
- description: ''
- required: true
- type: string
- - name: page
- in: query
- description: ''
- required: false
- type: integer
- format: int32
- - name: pagesize
- in: query
- description: ''
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: Success
- schema:
- type: array
- items:
- $ref: '#/definitions/Project'
- '400':
- description: Bad request
- schema:
- type: array
- items:
- $ref: '#/definitions/ApiError'
- '/api/projects/status/{status}/page/{page}':
- get:
- tags:
- - Projects
- summary: ''
- operationId: ApiProjectsStatusByStatusPageByPageGet
- consumes: []
- produces:
- - application/json
- parameters:
- - name: status
- in: path
- description: ''
- required: true
- type: string
- - name: page
- in: path
- description: ''
- required: true
- type: integer
- format: int32
- - name: pagesize
- in: query
- description: ''
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: Success
- schema:
- type: array
- items:
- $ref: '#/definitions/Project'
- '400':
- description: Bad request
- schema:
- type: array
- items:
- $ref: '#/definitions/ApiError'
- '/api/projects/status/{status}/page/{page}/pagesize/{pagesize}':
- get:
- tags:
- - Projects
- summary: ''
- operationId: ApiProjectsStatusByStatusPageByPagePagesizeByPagesizeGet
- consumes: []
- produces:
- - application/json
- parameters:
- - name: status
- in: path
- description: ''
- required: true
- type: string
- - name: page
- in: path
- description: ''
- required: true
- type: integer
- format: int32
- - name: pagesize
- in: path
- description: ''
- required: true
- type: integer
- format: int32
- responses:
- '200':
- description: Success
- schema:
- type: array
- items:
- $ref: '#/definitions/Project'
- '400':
- description: Bad request
- schema:
- type: array
- items:
- $ref: '#/definitions/ApiError'
- /api/projects:
- get:
- tags:
- - Projects
- summary: ''
- operationId: ApiProjectsGet
- consumes: []
- produces:
- - application/json
- parameters:
- - name: status
- in: query
- description: ''
- required: false
- type: string
- - name: page
- in: query
- description: ''
- required: false
- type: integer
- format: int32
- - name: pagesize
- in: query
- description: ''
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: Success
- schema:
- type: array
- items:
- $ref: '#/definitions/Project'
- '400':
- description: Bad request
- schema:
- type: array
- items:
- $ref: '#/definitions/ApiError'
- '/api/projects/{id}':
- get:
- tags:
- - Projects
- operationId: ApiProjectsByIdGet
- consumes: []
- produces:
- - application/json
- parameters:
- - name: id
- in: path
- required: true
- type: integer
- format: int32
- responses:
- '200':
- description: Success
- schema:
- $ref: '#/definitions/Project'
- /api/projects/user:
- get:
- tags:
- - Projects
- operationId: ApiProjectsUserGet
- consumes: []
- produces:
- - application/json
- parameters:
- - name: page
- in: query
- required: false
- type: integer
- format: int32
- - name: pagesize
- in: query
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: Success
- schema:
- type: array
- items:
- $ref: '#/definitions/Project'
- '/api/projects/user/page/{page}':
- get:
- tags:
- - Projects
- operationId: ApiProjectsUserPageByPageGet
- consumes: []
- produces:
- - application/json
- parameters:
- - name: page
- in: path
- required: true
- type: integer
- format: int32
- - name: pagesize
- in: query
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: Success
- schema:
- type: array
- items:
- $ref: '#/definitions/Project'
- '/api/projects/user/page/{page}/pagesize/{pagesize}':
- get:
- tags:
- - Projects
- operationId: ApiProjectsUserPageByPagePagesizeByPagesizeGet
- consumes: []
- produces:
- - application/json
- parameters:
- - name: page
- in: path
- required: true
- type: integer
- format: int32
- - name: pagesize
- in: path
- required: true
- type: integer
- format: int32
- responses:
- '200':
- description: Success
- schema:
- type: array
- items:
- $ref: '#/definitions/Project'
- '/api/projects/{id}/like':
- put:
- tags:
- - Projects
- operationId: ApiProjectsByIdLikePut
- consumes: []
- produces: []
- parameters:
- - name: id
- in: path
- required: true
- type: integer
- format: int32
- responses:
- '200':
- description: Success
- '/api/projects/{id}/dislike':
- put:
- tags:
- - Projects
- operationId: ApiProjectsByIdDislikePut
- consumes: []
- produces: []
- parameters:
- - name: id
- in: path
- required: true
- type: integer
- format: int32
- responses:
- '200':
- description: Success
- definitions:
- RegisterModel:
- type: object
- properties:
- email:
- type: string
- password:
- type: string
- ApiError:
- type: object
- properties:
- type:
- type: string
- readOnly: true
- code:
- type: string
- readOnly: true
- message:
- type: string
- readOnly: true
- UserInfoModel:
- type: object
- properties:
- name:
- type: string
- gender:
- format: int32
- enum:
- - 0
- - 1
- type: integer
- birthday:
- type: string
- Project:
- required:
- - name
- type: object
- properties:
- id:
- format: int32
- type: integer
- name:
- type: string
- tag:
- type: string
- description:
- type: string
- shortDescription:
- type: string
- goal:
- format: int32
- type: integer
- reached:
- format: int32
- type: integer
- readOnly: true
- treePrice:
- format: double
- type: number
- creationDate:
- format: date-time
- type: string
- reachedDate:
- format: date-time
- type: string
- finishedDate:
- format: date-time
- type: string
- deleted:
- type: boolean
- imageId:
- format: int32
- type: integer
- mainImageUrl:
- type: string
- readOnly: true
- mainImageUrlSmall:
- type: string
- readOnly: true
- otherImagesUrl:
- type: array
- items:
- type: string
- readOnly: true
- otherImagesUrlSmall:
- type: array
- items:
- type: string
- readOnly: true
- currencyName:
- type: string
- readOnly: true
- likesCount:
- format: int32
- type: integer
- readOnly: true
- status:
- type: string
- readOnly: true
- isLiked:
- description: >-
- For authorized requests show whether this project was liked by current
- user
- type: boolean
- donatorsCount:
- format: int32
- type: integer
- securityDefinitions: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement