Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "openapi":"3.0.3",
- "info":{
- "title":"Demo API",
- "description":"This documentation has been automatically generated by Treblle. Visit https:\/\/treblle.com\/ and get started for FREE.",
- "version":"1.0.0"
- },
- "servers":[
- {
- "url":"https:\/\/demo.treblle.com\/api\/v1\/"
- }
- ],
- "paths":{
- "\/articles":{
- "get":{
- "operationId":"ff45c497-9c15-4b31-a2b0-c4adf11fa764",
- "tags":[
- "articles"
- ],
- "parameters":[
- {
- "name":"page",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"bearer_token",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"token0a192d79-3c8a-398b-836f-bc526ec52d9euserNamepasswordusernameOrEmail",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- }
- ],
- "responses":{
- "200":{
- "description":"GET \/articles",
- "content":{
- "application\/json":{
- "schema":{
- "type":"object",
- "properties":{
- "code":{
- "type":"string"
- },
- "status":{
- "type":"string"
- },
- "message":{
- "type":"string"
- },
- "articles":{
- "type":"array",
- "items":{
- "type":"object",
- "properties":{
- "uuid":{
- "type":"string"
- },
- "title":{
- "type":"string"
- },
- "content":{
- "type":"string"
- },
- "image":{
- "type":"string"
- },
- "views":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "user":{
- "type":"object",
- "properties":{
- "name":{
- "type":"string"
- },
- "email":{
- "type":"string"
- },
- "phone_number":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "uuid":{
- "type":"string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "post":{
- "operationId":"23312472-5efb-41c7-8324-aa993bcc62a3",
- "tags":[
- "articles"
- ],
- "requestBody":{
- "required":true,
- "content":{
- "application\/x-www-form-urlencoded":{
- "schema":{
- "type":"object",
- "properties":{
- "title":{
- "type":"string"
- },
- "content":{
- "type":"string"
- },
- "image":{
- "type":"string"
- },
- "user":{
- "type":"string"
- }
- }
- }
- }
- }
- },
- "responses":{
- "200":{
- "description":"POST \/articles",
- "content":{
- "application\/json":{
- "schema":{
- "type":"object",
- "properties":{
- "code":{
- "type":"string"
- },
- "status":{
- "type":"string"
- },
- "message":{
- "type":"string"
- },
- "article":{
- "type":"object",
- "properties":{
- "uuid":{
- "type":"string"
- },
- "title":{
- "type":"string"
- },
- "content":{
- "type":"string"
- },
- "image":{
- "type":"string"
- },
- "views":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "user":{
- "type":"object",
- "properties":{
- "name":{
- "type":"string"
- },
- "email":{
- "type":"string"
- },
- "phone_number":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "uuid":{
- "type":"string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "\/articles\/{uuid}":{
- "get":{
- "operationId":"3785d352-88ab-4b9d-a2d5-5ecc15cc3a24",
- "tags":[
- "articles"
- ],
- "parameters":[
- {
- "name":"uuid",
- "in":"path",
- "required":true,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"user",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- }
- ],
- "responses":{
- "200":{
- "description":"GET \/articles\/{uuid}",
- "content":{
- "application\/json":{
- "schema":{
- "type":"object",
- "properties":{
- "code":{
- "type":"string"
- },
- "status":{
- "type":"string"
- },
- "message":{
- "type":"string"
- },
- "article":{
- "type":"object",
- "properties":{
- "uuid":{
- "type":"string"
- },
- "title":{
- "type":"string"
- },
- "content":{
- "type":"string"
- },
- "image":{
- "type":"string"
- },
- "views":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "user":{
- "type":"object",
- "properties":{
- "name":{
- "type":"string"
- },
- "email":{
- "type":"string"
- },
- "phone_number":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "uuid":{
- "type":"string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "\/articles\/{uuid}\/favorite":{
- "post":{
- "operationId":"6ced8e98-54db-4f8b-9b92-0170b751b874",
- "tags":[
- "articles"
- ],
- "requestBody":{
- "required":true,
- "content":{
- "application\/x-www-form-urlencoded":{
- "schema":{
- "type":"object",
- "properties":{
- "user":{
- "type":"string"
- }
- }
- }
- }
- }
- },
- "parameters":[
- {
- "name":"uuid",
- "in":"path",
- "required":true,
- "schema":{
- "type":"string"
- }
- }
- ],
- "responses":{
- "200":{
- "description":"POST \/articles\/{uuid}\/favorite",
- "content":{
- "application\/json":{
- "schema":{
- "type":"object",
- "properties":{
- "code":{
- "type":"string"
- },
- "status":{
- "type":"string"
- },
- "message":{
- "type":"string"
- },
- "article":{
- "type":"object",
- "properties":{
- "uuid":{
- "type":"string"
- },
- "title":{
- "type":"string"
- },
- "content":{
- "type":"string"
- },
- "image":{
- "type":"string"
- },
- "views":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "user":{
- "type":"object",
- "properties":{
- "name":{
- "type":"string"
- },
- "email":{
- "type":"string"
- },
- "phone_number":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "uuid":{
- "type":"string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "\/auth\/login":{
- "post":{
- "operationId":"57a9034f-2b78-4c26-a54e-61c2c0d84e0c",
- "tags":[
- "auth"
- ],
- "requestBody":{
- "required":true,
- "content":{
- "application\/x-www-form-urlencoded":{
- "schema":{
- "type":"object",
- "properties":{
- "email":{
- "type":"string"
- },
- "password":{
- "type":"string"
- },
- "token":{
- "type":"string"
- },
- "bearer_token":{
- "type":"string"
- }
- }
- }
- }
- }
- },
- "responses":{
- "200":{
- "description":"POST \/auth\/login",
- "content":{
- "application\/json":{
- "schema":{
- "type":"object",
- "properties":{
- "code":{
- "type":"string"
- },
- "status":{
- "type":"string"
- },
- "message":{
- "type":"string"
- },
- "user":{
- "type":"object",
- "properties":{
- "name":{
- "type":"string"
- },
- "email":{
- "type":"string"
- },
- "phone_number":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "uuid":{
- "type":"string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "\/auth\/register":{
- "post":{
- "operationId":"e314810f-96af-47db-b8d0-bf6f9e3645e6",
- "tags":[
- "auth"
- ],
- "requestBody":{
- "required":true,
- "content":{
- "application\/x-www-form-urlencoded":{
- "schema":{
- "type":"object",
- "properties":{
- "name":{
- "type":"string"
- },
- "email":{
- "type":"string"
- },
- "password":{
- "type":"string"
- },
- "phone_number":{
- "type":"string"
- }
- }
- }
- }
- }
- },
- "responses":{
- "200":{
- "description":"POST \/auth\/register",
- "content":{
- "application\/json":{
- "schema":{
- "type":"object",
- "properties":{
- "code":{
- "type":"string"
- },
- "status":{
- "type":"string"
- },
- "message":{
- "type":"string"
- },
- "user":{
- "type":"object",
- "properties":{
- "name":{
- "type":"string"
- },
- "email":{
- "type":"string"
- },
- "phone_number":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "uuid":{
- "type":"string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "\/users\/{uuid}\/favorites":{
- "get":{
- "operationId":"be69db2f-28c0-442c-b178-64b45094f5cd",
- "tags":[
- "users"
- ],
- "parameters":[
- {
- "name":"uuid",
- "in":"path",
- "required":true,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"registerNumber",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"departmentName",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"inspectorName",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"roVatCode",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"institution",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"institutionAddress",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"memberState",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"vatCode",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"traderDate",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"email",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- },
- {
- "name":"password",
- "in":"query",
- "required":false,
- "schema":{
- "type":"string"
- }
- }
- ],
- "responses":{
- "200":{
- "description":"GET \/users\/{uuid}\/favorites",
- "content":{
- "application\/json":{
- "schema":{
- "type":"object",
- "properties":{
- "code":{
- "type":"string"
- },
- "status":{
- "type":"string"
- },
- "message":{
- "type":"string"
- },
- "articles":{
- "type":"array",
- "items":{
- "type":"object",
- "properties":{
- "uuid":{
- "type":"string"
- },
- "title":{
- "type":"string"
- },
- "content":{
- "type":"string"
- },
- "image":{
- "type":"string"
- },
- "views":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "user":{
- "type":"object",
- "properties":{
- "name":{
- "type":"string"
- },
- "email":{
- "type":"string"
- },
- "phone_number":{
- "type":"string"
- },
- "created":{
- "type":"object",
- "properties":{
- "date":{
- "type":"string"
- },
- "timezone_type":{
- "type":"string"
- },
- "timezone":{
- "type":"string"
- }
- }
- },
- "uuid":{
- "type":"string"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "components":{
- "securitySchemes":{
- "BearerAuth":{
- "type":"http",
- "scheme":"bearer"
- }
- }
- },
- "security":[
- {
- "BearerAuth":[
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement