# API documentation

**URL:** <https://community.postman.com/t/api-documentation/16059>\
**Category:** Help Hub\
**Tags:** documentation, api-documentation\
**Created:** [September 21, 2020, 6:25am UTC](https://community.postman.com/t/api-documentation/16059 "2020-09-21T06:25:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Norgul](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/norgul/32/5643_2.png) [@Norgul](https://community.postman.com/u/Norgul)\
**Post date:** [September 21, 2020, 6:25am UTC](https://community.postman.com/t/api-documentation/16059/1 "2020-09-21T06:25:25Z")

</div>

Hi. I am trying to convince my team to leave Swagger and use a pro Postman plan, however I seem to be missing some key features here, so please tell me if I missed them in the documentation.

1. How can I document requests which take JSON as input? I see that instead of providing raw JSON, I can do the same in `form-data`. Are those two options equivalent when we are talking about the actual data that arrived at the server?
2. Is there an option to set a parameter type, so that user knows whether to provide a string/int/float…?
3. Can sample requests be ran in browser without actually having Postman? I know I can copy cURL request to terminal, but our users don’t know that.
4. How can I document the URL parameter - i.e. `api/users/{id}`?

Thanks

---

<div class="post-metadata">

**Author:** ![syn-aphamx](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@syn-aphamx](https://community.postman.com/u/syn-aphamx)\
**Post date:** [September 22, 2020, 7:27pm UTC](https://community.postman.com/t/api-documentation/16059/2 "2020-09-22T19:27:17Z")

</div>

Just like swagger Postman supports the use of openapi.

If your team uses openapi to swagger you can import those openapi files to postman to generate your docs/apis.

1. You can define a request of type object and define the object  
[https://swagger.io/docs/specification/describing-request-body/](https://swagger.io/docs/specification/describing-request-body/)

2. You can set data types  
[https://swagger.io/docs/specification/data-models/data-types/](https://swagger.io/docs/specification/data-models/data-types/)

3. No idea on this, never tried this functionality

4. Same way

---

<div class="post-metadata">

**Author:** ![Norgul](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/norgul/32/5643_2.png) [@Norgul](https://community.postman.com/u/Norgul)\
**Post date:** [September 22, 2020, 7:50pm UTC](https://community.postman.com/t/api-documentation/16059/3 "2020-09-22T19:50:18Z")

</div>

Thanks for the answer. Can you define objects and data types within Postman though, without using OpenAPI, or using it, but through Postman UI?

---

<div class="post-metadata">

**Author:** ![syn-aphamx](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@syn-aphamx](https://community.postman.com/u/syn-aphamx)\
**Post date:** [September 22, 2020, 9:42pm UTC](https://community.postman.com/t/api-documentation/16059/4 "2020-09-22T21:42:16Z")

</div>

Not to my knowledge no.
