A
A
Alexey Yarkov2018-07-31 19:46:15
Work organization
Alexey Yarkov, 2018-07-31 19:46:15

Where to store interfaces?

Server - RESTful API. Stack - typescript, typeorm, PostgreSQL.
Client - Web (Vue, typescript), Mobile (React Native).
There is a need to store interfaces in one place and fumble between projects.
I thought to make a service API resource, where by name to give a scheme from which to generate an interface. But this is just copy-paste for development.
Then I remembered the git submodule.
Someone faced similar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2018-07-31
@yarkov

only rest api. It is necessary to type what the backend can return.

Then why not describe the REST API using the OpenAPI spec and generate code based on it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question