Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swagger
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
external
swagger
Commits
fb768475
Commit
fb768475
authored
Aug 08, 2019
by
Faber Murillo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update medicamentos-usuarios.json
parent
950d6a56
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
medicamentos-usuarios.json
app-medicamentos/medicamentos-usuarios.json
+2
-2
No files found.
app-medicamentos/medicamentos-usuarios.json
View file @
fb768475
{
"swagger"
:
"2.0"
,
"info"
:{
"description"
:
"Información de los servicios de medicamentos usuarios"
,
"version"
:
"1.0.0"
,
"title"
:
"Medicamentos Usuarios"
},
"host"
:
"40.117.63.112"
,
"basePath"
:
"/"
,
"tags"
:[{
"name"
:
"user-controller"
,
"description"
:
"User Controller"
}],
"paths"
:{
"/users"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getUsers"
,
"operationId"
:
"getUsersUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"username"
,
"in"
:
"query"
,
"description"
:
"username"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"name"
,
"in"
:
"query"
,
"description"
:
"name"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"email"
,
"in"
:
"query"
,
"description"
:
"email"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"offset"
,
"in"
:
"query"
,
"description"
:
"offset"
,
"required"
:
true
,
"type"
:
"integer"
,
"format"
:
"int32"
},{
"name"
:
"count"
,
"in"
:
"query"
,
"description"
:
"count"
,
"required"
:
true
,
"type"
:
"integer"
,
"format"
:
"int32"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/ReportUsers"
}}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]},
"post"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"createUser"
,
"operationId"
:
"createUserUsingPOST"
,
"consumes"
:[
"application/json"
],
"produces"
:[
"*/*"
],
"parameters"
:[{
"in"
:
"body"
,
"name"
:
"user"
,
"description"
:
"user"
,
"required"
:
true
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"201"
:{
"description"
:
"Created"
},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]},
"put"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"updateUser"
,
"operationId"
:
"updateUserUsingPUT"
,
"consumes"
:[
"application/json"
],
"produces"
:[
"*/*"
],
"parameters"
:[{
"in"
:
"body"
,
"name"
:
"user"
,
"description"
:
"user"
,
"required"
:
true
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"201"
:{
"description"
:
"Created"
},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/buscarUsername"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getSearchUserName"
,
"operationId"
:
"getSearchUserNameUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"username"
,
"in"
:
"query"
,
"description"
:
"username"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"excludeId"
,
"in"
:
"query"
,
"description"
:
"excludeId"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/citiesUser"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getCitiesByUser"
,
"operationId"
:
"getCitiesByUserUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"id"
,
"in"
:
"query"
,
"description"
:
"id"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/City"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/crypt"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getPass"
,
"operationId"
:
"getPassUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"pass"
,
"in"
:
"query"
,
"description"
:
"pass"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"type"
:
"string"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/dispensaryUser"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getDispensariesByUser"
,
"operationId"
:
"getDispensariesByUserUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"id"
,
"in"
:
"query"
,
"description"
:
"id"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/Dispensary"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/email"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getUserByEmail"
,
"operationId"
:
"getUserByEmailUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"email"
,
"in"
:
"query"
,
"description"
:
"email"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"excludeId"
,
"in"
:
"query"
,
"description"
:
"excludeId"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/epsUser"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getEpsByUser"
,
"operationId"
:
"getEpsByUserUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"id"
,
"in"
:
"query"
,
"description"
:
"id"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/Eps"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/id"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getUserById"
,
"operationId"
:
"getUserByIdUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"id"
,
"in"
:
"query"
,
"description"
:
"id"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/loginUser"
:{
"post"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getLoginUser"
,
"operationId"
:
"getLoginUserUsingPOST"
,
"consumes"
:[
"application/json"
],
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"username"
,
"in"
:
"query"
,
"description"
:
"username"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"password"
,
"in"
:
"query"
,
"description"
:
"password"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"201"
:{
"description"
:
"Created"
},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/pass"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getPas"
,
"operationId"
:
"getPasUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"pass"
,
"in"
:
"query"
,
"description"
:
"pass"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"type"
:
"string"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/password"
:{
"put"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"updateUserPassword"
,
"operationId"
:
"updateUserPasswordUsingPUT"
,
"consumes"
:[
"application/json"
],
"produces"
:[
"*/*"
],
"parameters"
:[{
"in"
:
"body"
,
"name"
:
"user"
,
"description"
:
"user"
,
"required"
:
true
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}}],
"responses"
:{
"200"
:{
"description"
:
"OK"
},
"201"
:{
"description"
:
"Created"
},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/password/token"
:{
"put"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"updateUserPassToken"
,
"operationId"
:
"updateUserPassTokenUsingPUT"
,
"consumes"
:[
"application/json"
],
"produces"
:[
"*/*"
],
"parameters"
:[{
"in"
:
"body"
,
"name"
:
"user"
,
"description"
:
"user"
,
"required"
:
true
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"201"
:{
"description"
:
"Created"
},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/reset-password"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"resetPassword"
,
"operationId"
:
"resetPasswordUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"email"
,
"in"
:
"query"
,
"description"
:
"email"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/roles"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getRoles"
,
"operationId"
:
"getRolesUsingGET"
,
"produces"
:[
"*/*"
],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/Rol"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/rolesUser"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getRolesByUser"
,
"operationId"
:
"getRolesByUserUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"id"
,
"in"
:
"query"
,
"description"
:
"id"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/Rol"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/tiposIdentificacion"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getIdentificationTypes"
,
"operationId"
:
"getIdentificationTypesUsingGET"
,
"produces"
:[
"*/*"
],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/IdentificationType"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/token"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getUserByToken"
,
"operationId"
:
"getUserByTokenUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"username"
,
"in"
:
"query"
,
"description"
:
"username"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"token"
,
"in"
:
"query"
,
"description"
:
"token"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/username"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getUserByUserName"
,
"operationId"
:
"getUserByUserNameUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"username"
,
"in"
:
"query"
,
"description"
:
"username"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"excludeId"
,
"in"
:
"query"
,
"description"
:
"excludeId"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}}},
"securityDefinitions"
:{
"apiKey"
:{
"type"
:
"apiKey"
,
"name"
:
"Authorization"
,
"in"
:
"header"
}},
"definitions"
:{
"Authority"
:{
"type"
:
"object"
,
"properties"
:{
"id"
:{
"type"
:
"integer"
,
"format"
:
"int64"
},
"name"
:{
"type"
:
"string"
,
"enum"
:[
"ROLE_USER"
,
"ROLE_ADMIN"
]},
"users"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/User"
}}},
"title"
:
"Authority"
},
"City"
:{
"type"
:
"object"
,
"properties"
:{
"idCity"
:{
"type"
:
"string"
},
"nameCity"
:{
"type"
:
"string"
}},
"title"
:
"City"
},
"Dispensary"
:{
"type"
:
"object"
,
"properties"
:{
"id"
:{
"type"
:
"string"
},
"name"
:{
"type"
:
"string"
}},
"title"
:
"Dispensary"
},
"Eps"
:{
"type"
:
"object"
,
"properties"
:{
"id"
:{
"type"
:
"string"
},
"name"
:{
"type"
:
"string"
}},
"title"
:
"Eps"
},
"IdentificationType"
:{
"type"
:
"object"
,
"properties"
:{
"id"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"name"
:{
"type"
:
"string"
}},
"title"
:
"IdentificationType"
},
"ReportUsers"
:{
"type"
:
"object"
,
"properties"
:{
"count"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"usersList"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/ReportUsersList"
}}},
"title"
:
"ReportUsers"
},
"ReportUsersList"
:{
"type"
:
"object"
,
"properties"
:{
"alliance"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"changePassword"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"createdAt"
:{
"$ref"
:
"#/definitions/Timestamp"
},
"email"
:{
"type"
:
"string"
},
"enabled"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"id"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"name"
:{
"type"
:
"string"
},
"password"
:{
"type"
:
"string"
},
"phone"
:{
"type"
:
"integer"
,
"format"
:
"int64"
},
"resetToken"
:{
"type"
:
"string"
},
"role"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"updatedAt"
:{
"$ref"
:
"#/definitions/Timestamp"
},
"username"
:{
"type"
:
"string"
},
"usrIdCreate"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"usrIdUpdate"
:{
"type"
:
"integer"
,
"format"
:
"int32"
}},
"title"
:
"ReportUsersList"
},
"Rol"
:{
"type"
:
"object"
,
"properties"
:{
"id"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"name"
:{
"type"
:
"string"
}},
"title"
:
"Rol"
},
"Timestamp"
:{
"type"
:
"object"
,
"properties"
:{
"date"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"day"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"hours"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"minutes"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"month"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"nanos"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"seconds"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"time"
:{
"type"
:
"integer"
,
"format"
:
"int64"
},
"timezoneOffset"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"year"
:{
"type"
:
"integer"
,
"format"
:
"int32"
}},
"title"
:
"Timestamp"
},
"User"
:{
"type"
:
"object"
,
"properties"
:{
"alliance"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"authorities"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/Authority"
}},
"changePassword"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"cities"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/City"
}},
"createdAt"
:{
"$ref"
:
"#/definitions/Timestamp"
},
"email"
:{
"type"
:
"string"
},
"enabled"
:{
"type"
:
"boolean"
},
"firstname"
:{
"type"
:
"string"
},
"id"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"identification"
:{
"type"
:
"string"
},
"identificationType"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"lastPasswordResetDate"
:{
"type"
:
"string"
,
"format"
:
"date-time"
},
"lastname"
:{
"type"
:
"string"
},
"listDispensaries"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/Dispensary"
}},
"listEps"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/Eps"
}},
"name"
:{
"type"
:
"string"
},
"password"
:{
"type"
:
"string"
},
"phone"
:{
"type"
:
"integer"
,
"format"
:
"int64"
},
"resetToken"
:{
"type"
:
"string"
},
"role"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"roles"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/Rol"
}},
"surnames"
:{
"type"
:
"string"
},
"updatedAt"
:{
"$ref"
:
"#/definitions/Timestamp"
},
"username"
:{
"type"
:
"string"
},
"usrIdCreate"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"usrIdUpdate"
:{
"type"
:
"integer"
,
"format"
:
"int32"
}},
"title"
:
"User"
}}}
\ No newline at end of file
{
"swagger"
:
"2.0"
,
"info"
:{
"description"
:
"Información de los servicios de medicamentos usuarios"
,
"version"
:
"1.0.0"
,
"title"
:
"Medicamentos Usuarios"
},
"host"
:
"40.117.63.112/usermedbackend"
,
"basePath"
:
"/"
,
"tags"
:[{
"name"
:
"user-controller"
,
"description"
:
"User Controller"
}],
"paths"
:{
"/users"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getUsers"
,
"operationId"
:
"getUsersUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"username"
,
"in"
:
"query"
,
"description"
:
"username"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"name"
,
"in"
:
"query"
,
"description"
:
"name"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"email"
,
"in"
:
"query"
,
"description"
:
"email"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"offset"
,
"in"
:
"query"
,
"description"
:
"offset"
,
"required"
:
true
,
"type"
:
"integer"
,
"format"
:
"int32"
},{
"name"
:
"count"
,
"in"
:
"query"
,
"description"
:
"count"
,
"required"
:
true
,
"type"
:
"integer"
,
"format"
:
"int32"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/ReportUsers"
}}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]},
"post"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"createUser"
,
"operationId"
:
"createUserUsingPOST"
,
"consumes"
:[
"application/json"
],
"produces"
:[
"*/*"
],
"parameters"
:[{
"in"
:
"body"
,
"name"
:
"user"
,
"description"
:
"user"
,
"required"
:
true
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"201"
:{
"description"
:
"Created"
},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]},
"put"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"updateUser"
,
"operationId"
:
"updateUserUsingPUT"
,
"consumes"
:[
"application/json"
],
"produces"
:[
"*/*"
],
"parameters"
:[{
"in"
:
"body"
,
"name"
:
"user"
,
"description"
:
"user"
,
"required"
:
true
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"201"
:{
"description"
:
"Created"
},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/buscarUsername"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getSearchUserName"
,
"operationId"
:
"getSearchUserNameUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"username"
,
"in"
:
"query"
,
"description"
:
"username"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"excludeId"
,
"in"
:
"query"
,
"description"
:
"excludeId"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/citiesUser"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getCitiesByUser"
,
"operationId"
:
"getCitiesByUserUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"id"
,
"in"
:
"query"
,
"description"
:
"id"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/City"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/crypt"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getPass"
,
"operationId"
:
"getPassUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"pass"
,
"in"
:
"query"
,
"description"
:
"pass"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"type"
:
"string"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/dispensaryUser"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getDispensariesByUser"
,
"operationId"
:
"getDispensariesByUserUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"id"
,
"in"
:
"query"
,
"description"
:
"id"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/Dispensary"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/email"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getUserByEmail"
,
"operationId"
:
"getUserByEmailUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"email"
,
"in"
:
"query"
,
"description"
:
"email"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"excludeId"
,
"in"
:
"query"
,
"description"
:
"excludeId"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/epsUser"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getEpsByUser"
,
"operationId"
:
"getEpsByUserUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"id"
,
"in"
:
"query"
,
"description"
:
"id"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/Eps"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/id"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getUserById"
,
"operationId"
:
"getUserByIdUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"id"
,
"in"
:
"query"
,
"description"
:
"id"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/loginUser"
:{
"post"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getLoginUser"
,
"operationId"
:
"getLoginUserUsingPOST"
,
"consumes"
:[
"application/json"
],
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"username"
,
"in"
:
"query"
,
"description"
:
"username"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"password"
,
"in"
:
"query"
,
"description"
:
"password"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"201"
:{
"description"
:
"Created"
},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/pass"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getPas"
,
"operationId"
:
"getPasUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"pass"
,
"in"
:
"query"
,
"description"
:
"pass"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"type"
:
"string"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/password"
:{
"put"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"updateUserPassword"
,
"operationId"
:
"updateUserPasswordUsingPUT"
,
"consumes"
:[
"application/json"
],
"produces"
:[
"*/*"
],
"parameters"
:[{
"in"
:
"body"
,
"name"
:
"user"
,
"description"
:
"user"
,
"required"
:
true
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}}],
"responses"
:{
"200"
:{
"description"
:
"OK"
},
"201"
:{
"description"
:
"Created"
},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/password/token"
:{
"put"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"updateUserPassToken"
,
"operationId"
:
"updateUserPassTokenUsingPUT"
,
"consumes"
:[
"application/json"
],
"produces"
:[
"*/*"
],
"parameters"
:[{
"in"
:
"body"
,
"name"
:
"user"
,
"description"
:
"user"
,
"required"
:
true
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"201"
:{
"description"
:
"Created"
},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/reset-password"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"resetPassword"
,
"operationId"
:
"resetPasswordUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"email"
,
"in"
:
"query"
,
"description"
:
"email"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/roles"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getRoles"
,
"operationId"
:
"getRolesUsingGET"
,
"produces"
:[
"*/*"
],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/Rol"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/rolesUser"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getRolesByUser"
,
"operationId"
:
"getRolesByUserUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"id"
,
"in"
:
"query"
,
"description"
:
"id"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/Rol"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/tiposIdentificacion"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getIdentificationTypes"
,
"operationId"
:
"getIdentificationTypesUsingGET"
,
"produces"
:[
"*/*"
],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/IdentificationType"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/token"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getUserByToken"
,
"operationId"
:
"getUserByTokenUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"username"
,
"in"
:
"query"
,
"description"
:
"username"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"token"
,
"in"
:
"query"
,
"description"
:
"token"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}},
"/users/username"
:{
"get"
:{
"tags"
:[
"user-controller"
],
"summary"
:
"getUserByUserName"
,
"operationId"
:
"getUserByUserNameUsingGET"
,
"produces"
:[
"*/*"
],
"parameters"
:[{
"name"
:
"username"
,
"in"
:
"query"
,
"description"
:
"username"
,
"required"
:
true
,
"type"
:
"string"
},{
"name"
:
"excludeId"
,
"in"
:
"query"
,
"description"
:
"excludeId"
,
"required"
:
true
,
"type"
:
"string"
}],
"responses"
:{
"200"
:{
"description"
:
"OK"
,
"schema"
:{
"$ref"
:
"#/definitions/User"
}},
"401"
:{
"description"
:
"Unauthorized"
},
"403"
:{
"description"
:
"Forbidden"
},
"404"
:{
"description"
:
"Not Found"
}},
"security"
:[{
"apiKey"
:[
"global"
]}]}}},
"securityDefinitions"
:{
"apiKey"
:{
"type"
:
"apiKey"
,
"name"
:
"Authorization"
,
"in"
:
"header"
}},
"definitions"
:{
"Authority"
:{
"type"
:
"object"
,
"properties"
:{
"id"
:{
"type"
:
"integer"
,
"format"
:
"int64"
},
"name"
:{
"type"
:
"string"
,
"enum"
:[
"ROLE_USER"
,
"ROLE_ADMIN"
]},
"users"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/User"
}}},
"title"
:
"Authority"
},
"City"
:{
"type"
:
"object"
,
"properties"
:{
"idCity"
:{
"type"
:
"string"
},
"nameCity"
:{
"type"
:
"string"
}},
"title"
:
"City"
},
"Dispensary"
:{
"type"
:
"object"
,
"properties"
:{
"id"
:{
"type"
:
"string"
},
"name"
:{
"type"
:
"string"
}},
"title"
:
"Dispensary"
},
"Eps"
:{
"type"
:
"object"
,
"properties"
:{
"id"
:{
"type"
:
"string"
},
"name"
:{
"type"
:
"string"
}},
"title"
:
"Eps"
},
"IdentificationType"
:{
"type"
:
"object"
,
"properties"
:{
"alias"
:{
"type"
:
"string"
},
"id"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"name"
:{
"type"
:
"string"
}},
"title"
:
"IdentificationType"
},
"ReportUsers"
:{
"type"
:
"object"
,
"properties"
:{
"count"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"usersList"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/ReportUsersList"
}}},
"title"
:
"ReportUsers"
},
"ReportUsersList"
:{
"type"
:
"object"
,
"properties"
:{
"alliance"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"changePassword"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"createdAt"
:{
"$ref"
:
"#/definitions/Timestamp"
},
"email"
:{
"type"
:
"string"
},
"enabled"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"id"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"name"
:{
"type"
:
"string"
},
"password"
:{
"type"
:
"string"
},
"phone"
:{
"type"
:
"integer"
,
"format"
:
"int64"
},
"resetToken"
:{
"type"
:
"string"
},
"role"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"updatedAt"
:{
"$ref"
:
"#/definitions/Timestamp"
},
"username"
:{
"type"
:
"string"
},
"usrIdCreate"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"usrIdUpdate"
:{
"type"
:
"integer"
,
"format"
:
"int32"
}},
"title"
:
"ReportUsersList"
},
"Rol"
:{
"type"
:
"object"
,
"properties"
:{
"id"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"name"
:{
"type"
:
"string"
}},
"title"
:
"Rol"
},
"Timestamp"
:{
"type"
:
"object"
,
"properties"
:{
"date"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"day"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"hours"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"minutes"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"month"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"nanos"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"seconds"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"time"
:{
"type"
:
"integer"
,
"format"
:
"int64"
},
"timezoneOffset"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"year"
:{
"type"
:
"integer"
,
"format"
:
"int32"
}},
"title"
:
"Timestamp"
},
"User"
:{
"type"
:
"object"
,
"properties"
:{
"alliance"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"authorities"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/Authority"
}},
"changePassword"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"cities"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/City"
}},
"createdAt"
:{
"$ref"
:
"#/definitions/Timestamp"
},
"email"
:{
"type"
:
"string"
},
"enabled"
:{
"type"
:
"boolean"
},
"firstname"
:{
"type"
:
"string"
},
"id"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"identification"
:{
"type"
:
"string"
},
"identificationType"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"lastPasswordResetDate"
:{
"type"
:
"string"
,
"format"
:
"date-time"
},
"lastname"
:{
"type"
:
"string"
},
"listDispensaries"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/Dispensary"
}},
"listEps"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/Eps"
}},
"name"
:{
"type"
:
"string"
},
"password"
:{
"type"
:
"string"
},
"phone"
:{
"type"
:
"integer"
,
"format"
:
"int64"
},
"resetToken"
:{
"type"
:
"string"
},
"role"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"roles"
:{
"type"
:
"array"
,
"items"
:{
"$ref"
:
"#/definitions/Rol"
}},
"surnames"
:{
"type"
:
"string"
},
"updatedAt"
:{
"$ref"
:
"#/definitions/Timestamp"
},
"username"
:{
"type"
:
"string"
},
"usrIdCreate"
:{
"type"
:
"integer"
,
"format"
:
"int32"
},
"usrIdUpdate"
:{
"type"
:
"integer"
,
"format"
:
"int32"
}},
"title"
:
"User"
}}}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment