Skip to content

Commit

Permalink
Merge pull request #225 from ImranSk3/dev
Browse files Browse the repository at this point in the history
created dimension spec specification
  • Loading branch information
htvenkatesh authored Jul 7, 2023
2 parents 5534108 + 3b77263 commit f24b699
Showing 1 changed file with 73 additions and 1 deletion.
74 changes: 73 additions & 1 deletion spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,79 @@ paths:
description: "Something went wrong"
schema:
$ref: "#/definitions/generic_error"


/spec/dimension:
post:
tags:
- "spec"
summary: "Create a new dimension Specification"
description: "Add new dimension Specification"
operationId: "dimensionSpecification"
produces:
- "application/json"
parameters:
- in: "body"
name: "body"
required: true
schema:
example:
program: school
input:
type: object
properties:
school_id:
type: string
shouldNotNull: true
udise_code:
type: string
shouldNotNull: true
school_name:
type: string
shouldNotNull: true
schoolcategory_id:
type: string
shouldNotNull: true
block_id:
type: string
shouldNotNull: true
cluster_id:
type: string
shouldNotNull: true
cluster_name:
type: string
shouldNotNull: true
block_name:
type: string
shouldNotNull: true
district_id:
type: string
shouldNotNull: true
district_name:
type: string
shouldNotNull: true
latitude:
type: number
shouldNotNull: false
longitude:
type: number
shouldNotNull: false

responses:
200:
description: "Dimension Spec Created Successfully"
schema:
type: "object"
properties:
message:
type: "string"
example: "Dimension Spec Created Successfully"
dimension_name:
type: "string"
example: "school"
400:
description: "Something went wrong"
schema:
$ref: "#/definitions/generic_error"

/spec/schedule:
post:
Expand Down

0 comments on commit f24b699

Please sign in to comment.