{"openapi":"3.0.0","info":{"version":"1","title":"API Testing","description":"API ini hanya digunakan untuk testing","contact":{"email":"firman@webarq.com","name":"firman hardiansyah"}},"paths":{"/karyawan":{"get":{"description":"API ini digunakan untuk melihat listing karyawan","responses":{"200":{"description":"Succesfull","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"nik":{"type":"string","example":"WEBARQ01"},"nama":{"type":"string","example":"Firman"},"posisi":{"type":"string","example":"Business Analyst"}}}}},"application/xml":{"schema":{"type":"array","items":{"properties":{"nik":{"type":"string","example":"WEBARQ01"},"nama":{"type":"string","example":"Firman"},"posisi":{"type":"string","example":"Business Analyst"}}}}}}}}},"post":{"description":"API ini digunakan untuk submit karyawan baru","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"properties":{"nik":{"type":"string","example":"WEBARQ01"},"nama":{"type":"string","example":"Firman"},"posisi":{"type":"string","example":"Business Analyst"}}}}}}},"responses":{"200":{"description":"Succesfull","content":{"application/json":{"schema":{"type":"array","items":{"properties":{"nik":{"type":"string","example":"WEBARQ01"},"nama":{"type":"string","example":"Firman"},"posisi":{"type":"string","example":"Business Analyst"}}}}}}}}}},"/karyawan/{nik}":{"get":{"description":"API ini digunakan untuk melihat karyawan tertentu","parameters":[{"in":"path","name":"nik","description":"Nomor Induk Karyawan","required":true,"schema":{"type":"string","example":"WEBARQ01"}}],"responses":{"200":{"description":"Succesfull","content":{"application/json":{"schema":{"type":"object","properties":{"nik":{"type":"string","example":"WEBARQ01"},"nama":{"type":"string","example":"Firman"},"posisi":{"type":"string","example":"Business Analyst"}}}}}}}}}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/firmanhardiansyah/aaaaa/1"}]}