{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T10:09:50Z","timestamp":1784196590160,"version":"3.55.0"},"reference-count":42,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA2","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2025,10,9]]},"abstract":"<jats:p>REST APIs form the backbone of modern interconnected systems by providing a language-agnostic communication interface. REST API specifications should clearly describe all response types, but automatically generating specifications is difficult with existing tools.<\/jats:p>\n                  <jats:p>\n                    We present REST\n                    <jats:sub>\n                      <jats:italic toggle=\"yes\">\u03c0<\/jats:italic>\n                    <\/jats:sub>\n                    , a type inference engine capable of automatically generating REST API specifications. The novel contribution of RES\u2019ffi is our use of\n                    <jats:italic toggle=\"yes\">path-sensitive type inference,<\/jats:italic>\n                    which encodes symbolic pathconstraints directly into a type system. This allows REST\n                    <jats:sub>\n                      <jats:italic toggle=\"yes\">\u03c0<\/jats:italic>\n                    <\/jats:sub>\n                    to enumerate all response types by considering each distinct execution path through an endpoint implementation. We implement path-sensitive type inference for Ruby, a popular language used for REST API servers. We evaluate REST\n                    <jats:sub>\n                      <jats:italic toggle=\"yes\">\u03c0<\/jats:italic>\n                    <\/jats:sub>\n                    by using it to infer types for 132 endpoints across 5 open-source REST API implementations without utilizing existing specifications or test suites. We find REST\n                    <jats:sub>\n                      <jats:italic toggle=\"yes\">\u03c0<\/jats:italic>\n                    <\/jats:sub>\n                    performs type inference efficiently and produces types that are more precise and complete than those obtained via an HTTP proxy. Our results suggest that path-sensitivity is a key technique to enumerate distinct response types for REST endpoints.\n                  <\/jats:p>","DOI":"10.1145\/3763055","type":"journal-article","created":{"date-parts":[[2025,10,9]],"date-time":"2025-10-09T08:49:50Z","timestamp":1759999790000},"page":"144-165","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["RestPi: Path-Sensitive Type Inference for REST APIs"],"prefix":"10.1145","volume":"9","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-5269-7063","authenticated-orcid":false,"given":"Mark W.","family":"Aldrich","sequence":"first","affiliation":[{"name":"Tufts University, Medford, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0005-2533-7499","authenticated-orcid":false,"given":"Kyla H.","family":"Levin","sequence":"additional","affiliation":[{"name":"University of Massachusetts at Amherst, Amherst, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9369-4069","authenticated-orcid":false,"given":"Michael","family":"Coblenz","sequence":"additional","affiliation":[{"name":"University of California at San Diego, La Jolla, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8043-1166","authenticated-orcid":false,"given":"Jeffrey S.","family":"Foster","sequence":"additional","affiliation":[{"name":"Tufts University, Medford, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,10,9]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"2025. Generate OpenAPI schema from RSpec request specs. https:\/\/github.com\/exoego\/rspec-openapi."},{"key":"e_1_3_1_3_2","unstructured":"2025. HAR to OpenAPI spec generator. https:\/\/github.com\/jonluca\/har-to-openapi."},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","unstructured":"Mark W Aldrich Kyla H Levin Michael Coblenz and Jeffrey S Foster. 2025. Replication Package for REST\/t: Path Sensitive Type Inference for REST APIs. doi:10.5281\/zenodo.16916395","DOI":"10.5281\/zenodo.16916395"},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2021.3115401"},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICST.2018.00046"},{"key":"e_1_3_1_7_2","unstructured":"Luke Autry. 2024. Build OpenAPI-compliant REST APIs using TypeScript and Node. https:\/\/github.com\/lukeautry\/tsoa"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/390016.808445"},{"key":"e_1_3_1_9_2","unstructured":"Nat Budin. 2024. Journey: An online questionnaire application. https:\/\/github.com\/nbudin\/journey\/."},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-69035-3_32"},{"key":"e_1_3_1_11_2","doi-asserted-by":"crossref","unstructured":"Giuseppe Castagna Victor Lanvin Micka\u0451l Laurent and Kim Nguyen. 2022. Revisiting occurrence typing. Science of Computer Programming 217 (2022) 102781.","DOI":"10.1016\/j.scico.2022.102781"},{"key":"e_1_3_1_12_2","unstructured":"OpenFarm CC. 2024. A free and open database for farming and gardening knowledge. https:\/\/github.com\/openfarmcc\/ OpenFarm."},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1109\/VL-HCC57772.2023.00025"},{"key":"e_1_3_1_14_2","unstructured":"Code.org. 2024. The code powering code.org and studio.code.org. https:\/\/github.com\/code-dot-org\/code-dot-org."},{"key":"e_1_3_1_15_2","unstructured":"Ruby Swagger Community. 2024. Seamlessly adds a Swagger to Rails-based API\u2019s. https:\/\/github.com\/rswag\/rswag."},{"key":"e_1_3_1_16_2","doi-asserted-by":"crossref","unstructured":"Mario Coppo and Mariangiola Dezani-Ciancaglini. 1978. A new type assignment for A-terms. Archiv f\u00fcr mathematische Logik und Grundlagenforschung 19 (1978) 139\u2013156.","DOI":"10.1007\/BF02011875"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","DOI":"10.1145\/234528.234740"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1145\/512529.512538"},{"key":"e_1_3_1_19_2","doi-asserted-by":"crossref","unstructured":"Isil Dillig Thomas Dillig and Alex Aiken. 2008. Sound complete and scalable path-sensitive analysis. In Proceedings of the 29th ACM SIGPLAN Conference on Programming Language Design and Implementation. 270\u2013280.","DOI":"10.1145\/1375581.1375615"},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","DOI":"10.5555\/932295"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2012.14"},{"key":"e_1_3_1_22_2","doi-asserted-by":"crossref","unstructured":"Zheng Guo David Cao Davin Tjong Jean Yang Cole Schlesinger and Nadia Polikarpova. 2022. Type-directed program synthesis for RESTful APIs. In Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation. 122\u2013136.","DOI":"10.1145\/3519939.3523450"},{"key":"e_1_3_1_23_2","doi-asserted-by":"crossref","unstructured":"Zac Hatfield-Dodds and Dmitry Dygalo. 2022. Deriving semantics-aware fuzzers from web api schemas. In Proceedings of the ACM\/IEEE 44th International Conference on Software Engineering: Companion Proceedings. 345\u2013346.","DOI":"10.1145\/3510454.3528637"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1145\/3597503.3639137"},{"key":"e_1_3_1_25_2","unstructured":"Civilized Discourse Construction Kit Inc. 2024. Discourse: A platform for community discussion. https:\/\/github.com\/ discourse\/discourse."},{"key":"e_1_3_1_26_2","unstructured":"SmartBear Software Inc. 2024. Seamlessly adds a Swagger to Rails-based API\u2019s. Swagger. https:\/\/swagger.io."},{"key":"e_1_3_1_27_2","unstructured":"OpenAPI Initiative. 2004. OpenAPI Specification v3.1.0. https:\/\/github.com\/OAI\/OpenAPI-Specification\/blob\/main\/ versions\/3.1.0.md"},{"key":"e_1_3_1_28_2","unstructured":"Inc. Instructure. 2024. The open LMS by Instructure Inc. https:\/\/github.com\/instructure\/canvas-lms."},{"key":"e_1_3_1_29_2","doi-asserted-by":"crossref","unstructured":"Milod Kazerounian Sankha Narayan Guria Niki Vazou Jeffrey S Foster and David Van Horn. 2019. Type-level computations for Ruby libraries. In Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation. 966\u2013979.","DOI":"10.1145\/3314221.3314630"},{"key":"e_1_3_1_30_2","doi-asserted-by":"crossref","unstructured":"Milod Kazerounian Brianna M Ren and Jeffrey S Foster. 2020. Sound heuristic type annotation inference for ruby. In Proceedings ofthe 16th ACM SIGPLAN International Symposium on Dynamic Languages. 112\u2013125.","DOI":"10.1145\/3426422.3426985"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.1145\/2980983.2908091"},{"key":"e_1_3_1_32_2","doi-asserted-by":"crossref","unstructured":"Myeongsoo Kim Qi Xin Saurabh Sinha and Alessandro Orso. 2022. Automated test generation for rest apis: No time to rest yet. In Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis. 289\u2013301.","DOI":"10.1145\/3533767.3534401"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/390016.808444"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","DOI":"10.1145\/360248.360252"},{"key":"e_1_3_1_35_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-35063-4_36"},{"key":"e_1_3_1_36_2","unstructured":"Kamil Mysliwiec. 2024. OpenAPI (Swagger) module for Nest framework (node.js). https:\/\/github.com\/nestjs\/swagger."},{"key":"e_1_3_1_37_2","unstructured":"Badr Nasslahsen. 2024. Library for OpenAPI 3 with spring-boot. https:\/\/github.com\/springdoc\/springdoc-openapi."},{"key":"e_1_3_1_38_2","unstructured":"Sebasti\u00e1n Ram\u00edrez. 2024. a modern fast (high-performance) web framework for building APIs with Python based on standard Python type hints. https:\/\/github.com\/fastapi\/fastapi."},{"key":"e_1_3_1_39_2","doi-asserted-by":"crossref","unstructured":"Koushik Sen George Necula Liang Gong and Wontae Choi. 2015. Multise: Multi-path symbolic execution using value summaries. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering. 842\u2013853.","DOI":"10.1145\/2786805.2786830"},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE-SEIP.2017.11"},{"key":"e_1_3_1_41_2","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2015.52"},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","DOI":"10.1145\/1328897.1328486"},{"key":"e_1_3_1_43_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICST46399.2020.00024"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3763055","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,16]],"date-time":"2026-07-16T10:00:15Z","timestamp":1784196015000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3763055"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,10,9]]},"references-count":42,"journal-issue":{"issue":"OOPSLA2","published-print":{"date-parts":[[2025,10,9]]}},"alternative-id":["10.1145\/3763055"],"URL":"https:\/\/doi.org\/10.1145\/3763055","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,10,9]]},"assertion":[{"value":"2024-10-16","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-08-12","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2025-10-09","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}