Skip to content

Instantly share code, notes, and snippets.

@gencelo
Last active March 5, 2018 17:29
Show Gist options
  • Save gencelo/e498ea365d91a061041d4776ab0e082f to your computer and use it in GitHub Desktop.
Save gencelo/e498ea365d91a061041d4776ab0e082f to your computer and use it in GitHub Desktop.
{"swagger":"2.0","info":{"description":"SpringFox denemesi.","version":"V1","title":"Deneme","termsOfService":"Kurallar Linki","contact":{"name":"Oğuzhan Gençel","url":"www.example.com","email":"genceloguzhan@gmail.com"},"license":{"name":"Lisans bilgileri","url":"API lisans adresi"}},"host":"localhost:8080","basePath":"/","tags":[{"name":"person-controller","description":"Person Controller"}],"paths":{"/person/":{"get":{"tags":["person-controller"],"summary":"person","operationId":"personUsingGET","consumes":["application/json"],"produces":["*/*"],"responses":{"200":{"description":"OK","schema":{"type":"string"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}},"post":{"tags":["person-controller"],"summary":"person","operationId":"personUsingPOST","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"id","in":"query","description":"Person ID field","required":true,"type":"integer","default":1,"format":"int32"},{"name":"name","in":"query","description":"Person Name field","required":false,"type":"string"},{"name":"surName","in":"query","description":"Person Surname field","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"string"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}},"put":{"tags":["person-controller"],"summary":"Update person","operationId":"personUpdateUsingPUT","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"id","in":"query","description":"Person ID field","required":true,"type":"integer","default":1,"format":"int32"},{"name":"name","in":"query","description":"Person Name field","required":false,"type":"string"},{"name":"surName","in":"query","description":"Person Surname field","required":false,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"string"}},"201":{"description":"Created"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}},"/person/{id}":{"get":{"tags":["person-controller"],"summary":"person","operationId":"personUsingGET_1","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"id","in":"path","description":"id","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"string"}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}}}}},"securityDefinitions":{"Yerkilendirme":{"type":"oauth2","authorizationUrl":"http://localhost:8080/oauth/authorize","tokenUrl":"http://localhost:8080/oauth/token","flow":"accessCode","scopes":{"Üye":"Yazı okuyabilir","Yazar":"Yazı yazabilir ve okuyabilir","Admin":"Yazı yazabilir, okuyabilir, silebilir"}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment